From the course: Advanced Linux: The Linux Kernel
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Examine kernel driver source - CentOS Tutorial
From the course: Advanced Linux: The Linux Kernel
Examine kernel driver source
- [Instructor] Let's now talk about drivers, device drivers the source code for drivers in the Linux Kernel. So, there is a subdirectory called Drivers and there's lots of subdirectories as the drivers are organized in the different sort of categories. For example there is a subdirectory called net for network drivers, and there's a subdirectory underneath net called ethernet, for ethernet drivers. There are lots of ethernet device drivers for example in the Linux Kernel. Another subdirectory underneath Drivers is the char subdirectory for character drivers including the driver mem.c that includes the functions for working with the device file dev null. For example, in the character subdirectory you will find the file mem.c and in that file you will find the function read underscore null which is the function called when you read dev null, and you can see all it does is return zero, how long did it take to write that…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Get the kernel source8m 23s
-
(Locked)
Explore the kernel makefile4m 59s
-
(Locked)
Examine and build kernel documentation6m 2s
-
(Locked)
Search the kernel source7m 58s
-
(Locked)
Examine kernel driver source4m 2s
-
(Locked)
Additional selected subdirectories8m 49s
-
(Locked)
Challenge: Linux kernel source code26s
-
(Locked)
Challenge: Solution4m 5s
-
(Locked)
-
-