From the course: Advanced Linux: The Linux Kernel (2020)
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Finding the LKMs - CentOS Tutorial
From the course: Advanced Linux: The Linux Kernel (2020)
Finding the LKMs
- [Instructor] Let's look at where the loadable kernel module files are and what's going on with that. So loadable kernel modules are installed into a directory underneath lib/modules with each installed kernel version having its own directory underneath there. So that means we can have lots of copies of the same loadable module, just built for different kernel versions. Underneath the lib/modules kernel version are a lot more subdirectories, so the loadable kernel modules are organized based on subsystem and so forth underneath there. So lib modules kernel version directory also has a bunch of config files used for utilities like the mod probe utility. Each module file needs to have a unique name, you can't load into the same kernel at the same time two modules with the same name. That's not a big deal, but something to keep in mind. These modules, these .ko files can be anywhere in the system, like in your home…
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.