Use the commands: insmod, modprobe, lsmod, rmmod, modinfo.
- [Voiceover] lsmod is the command for listing the modules…that are currently loaded in the kernel.…They're listed chronologically with the…one on the top there being the most recent loaded module.…The size is the size in bytes.…Then, there's two columns actually.…The third column doesn't have a header.…The third column is…a small number like one or zero,…or three or four.…That's the module count.…That's how many times the kernel thinks…that module is in use.…A zero means a kernel doesn't think it's in use.…What "in use" means…depends on what kind of module it is.…
If it's a character device module, for example,…it represent how many times…a device file associated with that driver…has the device file open.…The "used by" represents dependencies between modules.…In this case, we can see that…macvtap is used by vhost_net.…And, macvlan is used by macvtap.…Dependencies can go in only one direction.…Two modules can't depend on each other.…A module needs to be loaded…before a module that depends on it.…
If we were to try to load, for example…
We survey the Linux kernel specification, boot process, and loadable kernel modules. You will practice techniques such as downloading and searching Linux kernel source code and configuring a Linux kernel from scratch. Challenge and solution videos at the end of almost every chapter allow you to test your new Linux skills along the way.
- What is the Linux kernel?
- Controlling hardware
- Reading Linux kernel messages
- Reading and writing files from the proc and sysfs filesystems
- Configuring GRUB
- Using kernel command-line parameters
- Configuring run levels
- Working with loadable kernel modules (LKMs)
- Searching the kernel source code
- Building and installing a Linux kernel
Skill Level Advanced
Learning Linux Command Line (2016)with Scott Simpson1h 38m Beginner
1. Surveying the Linux Kernel
3. Working with Loadable Kernel Modules
4. Examining Linux Kernel Source Code
5. Configuring and Building a Linux Kernel
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.