From the course: Advanced Linux: The Linux Kernel

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Using LKM commands

Using LKM commands - CentOS Tutorial

From the course: Advanced Linux: The Linux Kernel

Start my 1-month free trial

Using LKM commands

- [Instructor] Now let's look at commands relating to working with loadable Kernel modules. Let's look at lsmod, the command that will list the modules that are currently loaded in your running Kernel. And the order of the modules listed is effectively reverse chronological, the first one listed there is the last one loaded. So, with our list here, vhost_net was loaded after macvtap which was loaded after mtacvlan which was loaded after the tcp_ip. That can be important because modules can depend on other modules. A module can call a subroutine that's in another module for example. So order is important. Now if we look at the columns we can learn more. We have the size column, size and bytes of the module, and then we have two other columns although there's only one other header. We have the used by header, but the third column, those numbers, is actually the use count column. That number indicates how many times that…

Contents