Course Overview
110+ Lectures on Linux Kernel Programming
Updated on Dec 12th 2020 : Added more videos in Bonus section
Do you want to expand your horizon and be a part of programming evolution? Would you like to become proficient in Linux Kernel Module Programming to gain skills that are valued by the programming industry?
And why not? After all, Linux is one of the most popular OS for software developers, and its popularity is only going to increase over time.
There are many Linux Kernel Module Programming courses available to learn these skills.
However, these courses are often lacking in the practical approach, and students often feel left behind.
So, what is the best course available to learn this valuable skill right now?
Introducing Learn Linux Kernel Programming, a high-quality course developed by Linux Weekend Learning.
This course is built on a practical approach and uses a lot of real-world examples to give you proper training.
By enrolling, you will have lifetime access to course. You can learn at your own pace and refer back them whenever you want!
Here are some of the perks of this course:
Over 5 hours of video teaching and training
100+ Lectures on Linux Kernel Programming
Understanding the in and out of the hello world kernel modules
Write various kernel modules which exports symbols, accepts parameters, creates kernel threads
Learn about the printk function in deep
Various commands used while working in Linux Kernel Modules:insmod, rmmod, modprobe, lsmod, dmesg
All examples and notes used in the course are available for download
Direct access to your instructors for questions and help through the Udemy communication channels
Lifetime access to the course, including all future updates
This course comes with a 30 day money back guaranteed!. If you are not satisfied with the course, you'll get your money back
So what are you waiting for, enroll now and take the next step in learning Linux Kernel Programming
Commands you will learn from this course:
lsmod
dmesg
insmod
rmmod
modprobe
modinfo
depmod
objdump
ps -l
API's covered in the course:
module_param
module_param_array
EXPORT_SYMBOL
EXPORT_SYMBOL_GPL
MODULE_INFO
KBUILD_MODNAME
dump_stack
panic
BUG()
for_each_process
num_online_cpus
printk_rate_limit
printk_once
print_hex_dump
print_hex_dump_bytes
current
kthread_create
wake_up_process
kthread_stop
kthread_should_stop
kthread_run
usleep_range
msleep
smp_processor_id
VERMAGIC_STRING
FAQ
FAQ area empty
Course curriculum
Chương 1 Introduction 21 bài · 1 giờ 20 phút
- What is Device Driver Học thử 2:33
- What is Kernel Module Học thử 3:30
- Device Drivers vs Kernel Modules Học thử 7:26
-
Types of Kernel Modules 1:25
-
Basic Commands 4:21
- Hello World Kernel Module Học thử 17:50
- Printf vs Printk Học thử 2:42
- Simplified Makefile Học thử 2:42
-
What happens when run insmod 3:17
- What happens if we return -1 from Kernel Module Init function Học thử 1:36
-
Give another name to Kernel Module 3:21
-
Kernel Module Span across Multiple C Files 2:30
-
Two Kernel Modules from Single Makefile 2:16
-
Dmesg in deep 8:09
-
Dmesg follow option 1:44
-
Linux Kernel Module example with module_init only 3:25
-
Linux Kernel Module example with module_exit only 2:33
-
Two Line Linux Kernel Module 1:50
-
Cross Compilation 7:07
-
Resources
-
Introduction Quiz
Chương 2 Linux Kernel Module Internals 8 bài · 16 phút
-
From .c to .ko 1:49
-
Understanding Module.symvers and modules.order 2:27
-
Insmod vs Modprobe 2:08
-
How Modprobe calculates dependencies (modules.dep/depmod) 2:30
-
Understanding module_init & module_exit functions 2:55
-
Examples of gcc attribute alias 2:22
-
Linux Kernel Module example without module_init and module_exit macro 1:53
-
Linux Kernel Module Internals Quiz
Chương 3 Module Parameters 8 bài · 19 phút
-
Passing Parameters to Linux Kernel Modules 5:23
-
What happen if we pass incorrect values to module parameters 1:16
-
How to pass parameters to builtin modules 1:03
-
How to pass string with multiple word as parameter 2:26
-
Passing zero to permission argument of module_param macro 1:01
-
Passing array as module parameters 4:36
-
Inv bool 3:02
-
Module Parameters Quiz
Chương 4 Exporting Symbols 9 bài · 18 phút
-
Symbol and Symbol Table 1:49
-
Exporting symbol 1:08
-
System.map vs /proc/kallsyms 2:41
-
Linux Kernel Module example of exporting function 2:03
-
Module Stacking 5:36
-
Linux Kernel Module example of exporting variable 2:02
-
Version Magic 3:07
-
Resources
-
Exporting Symbols Quiz
Chương 5 Module Licenses 6 bài · 15 phút
-
What happens if we don't specify MODULE_LICENSE macro 1:23
-
What is tainted kernel 1:15
-
How to check whether the kernel is in tainted state or not 6:29
-
What happens when you specify invalid license (Say "abc") 1:22
-
What happens when a non-GPL kernel module trying to access GPL Module 4:28
-
Module Licenses Quiz
Chương 6 Module Metadata 5 bài · 10 phút
-
How to find out kernel version from a .ko 0:54
-
Module metadata 5:12
-
MODULE_INFO macro 2:31
-
Objdump on Kernel module 1:42
-
Module Metadata Quiz
Chương 7 Printk 17 bài · 1 giờ 2 phút
-
What happens if we continuously call printk 1:41
-
Printk kernel ring buffer size 3:01
-
Printk Log Levels 4:06
-
Default printk log level 3:18
-
Kernel Messages on Console 6:35
-
Short printk macros 2:06
-
Enable pr_debug messages 5:00
-
Linux Kernel Module example which prints floating point number 1:59
-
Why floating point unit is OFF in kernel space 2:39
-
Limiting printk messages - printk_rate_limit 6:50
-
Limiting printk messages - printk_once 2:49
-
Avoiding default new line behavior of printk 4:33
-
Printing hex dump - print_hex_dump 3:30
-
Printing hex dump - print_hex_dump_bytes 2:15
-
Dynamic Debug 12:03
-
Resources
-
Printk quiz
Chương 8 System call for loading module 3 bài · 5 phút
-
What happens if i try to load non-ko file with insmod 1:15
-
Strace on insmod command 2:06
-
Find out name of module from .ko 1:54
Chương 9 Kernel Panic, Oops, Bug 10 bài · 17 phút
-
How to dump kernel stack 1:55
-
What is kernel panic 4:48
-
Kernel Panic Example 1:53
-
What is oops 1:22
-
Oops Example 2:24
-
What is BUG and example 2:31
-
Can we remove module after bug/oops 0:18
-
How to define preprocessing symbol in Makefile 1:53
-
Resources
-
Quiz
Chương 10 Process Management in Linux Kernel 9 bài · 24 phút
-
How to find out how many CPU's are present from user space and kernel space 2:36
-
Process representation in Linux Kernel and process states 4:12
-
Linux Kernel Module example demonstrating process name, process id and process s 3:38
-
Linux Kernel Module example demonstrating current macro 3:02
-
Linux Kernel Module example demonstrating current macro part 2 1:52
-
Linux Kernel Module which accepts PID as argument and prints process and parent 2:58
-
Process Memory Map 3:41
-
Linux Kernel Module xample for printing process memory map 2:02
-
Quiz
Chương 11 Kernel Threads 10 bài · 25 phút
-
Introduction to Kernel Threads 6:02
-
Kernel Thread Example - kthread_create 2:34
-
Kernel Thread Example - kthread_run 2:00
-
Two Kernel Threads Example 1:57
-
Can we have two kernel threads with same name 2:05
-
What happens if we don't use kthread_should_stop() in thread function 3:06
-
What happens if we don't call kthread_stop() in module_exit 1:50
-
Print processor id in kernel module 2:18
-
Linux Kernel Thread example of race condition 3:31
-
Quiz
Chương 12 Module Support for Multiple Kernels 6 bài · 12 phút
-
LINUX_VERSION_CODE Macro 5:55
-
KERNEL_VERSION Macro 1:45
-
UTS_RELEASE 1:09
-
Linux Kernel Module example supporting multiple versions 1:17
-
Output of pre-processed stage 2:14
-
Resources
Chương 13 Bonus Section 10 bài · 35 phút
-
Significance of __init macro 6:34
-
Can we use __init macro for builtin modules 2:08
-
__exit macro 2:43
-
__initdata and __exitdata macro 4:33
-
How do you list builtin modules 1:55
-
How to load modules automatically 4:43
-
Blacklisting Kernel Modules 3:47
-
Blacklisting Kernel Modules Part 2 2:45
-
Passing Parameters to Linux Kernel Modules loaded using modprobe 1:53
-
Systool 4:12
Requirment
-
C
-
Basics understanding of most frequently used commands in Linux (echo, cat, make, ls etc)
-
Access to a computer running Linux (either direct or on VM)
Outcomes
-
What is Kernel Module,Device Driver and Differences
-
Advantages and Disadvantages of Kernel Modules
-
Understanding the hello world Linux Kernel Module and process of compilation
-
Various commands: lsmod, rmmod, modinfo, insmod, modprobe, modinfo, depmod, objdump, dmesg
-
Passing Parameters to Linux Kernel Modules
-
Exporting Symbols
-
Kernel Panic,oops, BUG, WARN
-
Process Management in Linux Kernel
-
Creating Kernel Threads
-
Module Metadata
-
Printk and Dynamic Debug
0 Student
1 Course
0 review