From the course: Advanced Linux: The Linux Kernel
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Demonstration: kernel source - Linux Tutorial
From the course: Advanced Linux: The Linux Kernel
Demonstration: kernel source
- [Instructor] Let's look at driver source stuff, a little bit in the kernel. First of all, let's figure out what ethernet devices we have. So we've got a few there and then we've got this kind of real one, even though we're in a VM. This ENP thing, let's find out more about that. And it tells us the driver is MLX5 core. All right, so let's see if there's a loadable module with that name. Yep. Sure enough, there's a module with that name loaded. So the driver for that ethernet was built as a loadable kernel module. Let's see if we can go find the source code for that. If we find dot name mlx5 underscore core. Oops. We don't pipe into slash name. All right, we've got a bunch of stuff underneath drivers net. So let's go to drivers net ethernet mellanox mlx5 core. Now we got lots of stuff. Now I already did a full build in here, so I got lots of object files along with the source files. There's a make file in here. Let's look at the make file. And we see here on line nine, obj dash value…
Contents
-
-
-
-
-
-
(Locked)
Getting Linux kernel source code2m 37s
-
(Locked)
Explore the kernel makefile3m 1s
-
(Locked)
Examine and build kernel documentation4m 29s
-
(Locked)
Search the kernel source3m 18s
-
(Locked)
Demonstration of kernel source and searching4m 54s
-
(Locked)
Examine kernel driver source5m 1s
-
(Locked)
Demonstration: kernel source7m
-
(Locked)
Additional selected subdirectories3m 5s
-
(Locked)
Challenge: Linux kernel source code1m 29s
-
(Locked)
Solution: Linux kernel source code3m 46s
-
(Locked)
-
-