Use printk(), read messages on the console, use dmesg to display the printk buffer, and log files.
- [Voiceover] More on surveying the Linux kernel,…reading messages from the kernel.…printk is the most commonly called function…in the Linux kernel.…In some kernel versions printk is called…almost 50,000 times.…printk() is the kernel's function just to print messages.…It's like C's printf().…So the Linux kernel has written it in predominantly C…with a little bit of assembly language.…There's no Java or COBOL in the kernel.…It's C stuff.…The output of printk is put in a RAM buffer,…and normally printed on the system console.…
But commonly we're not looking at the system console,…so that's not so helpful.…The kernel does some filtering, so not all printk messages…will be displayed on the console.…In fact, that's configurable.…Messages have to be important enough…to show up on the console.…Also Linux commonly is running some sort of logging daemon…and the logging daemon will capture these messages…from the kernel, and say put them in a log file…or maybe display them on the screen…or email them or other sorts of things.…
We survey the Linux kernel specification, boot process, and loadable kernel modules. You will practice techniques such as downloading and searching Linux kernel source code and configuring a Linux kernel from scratch. Challenge and solution videos at the end of almost every chapter allow you to test your new Linux skills along the way.
- What is the Linux kernel?
- Controlling hardware
- Reading Linux kernel messages
- Reading and writing files from the proc and sysfs filesystems
- Configuring GRUB
- Using kernel command-line parameters
- Configuring run levels
- Working with loadable kernel modules (LKMs)
- Searching the kernel source code
- Building and installing a Linux kernel
Skill Level Advanced
1. Surveying the Linux Kernel
3. Working with Loadable Kernel Modules
4. Examining Linux Kernel Source Code
5. Configuring and Building a Linux Kernel
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.