fbpx Linux Modules and Drivers: /proc/interrupts and IRQ Handling | Certificação Linux

Understanding Linux Kernel Modules

📅 03/06/2019 ⏱ 2 min ✍️ Uira Ribeiro
Linuxcommandshow-to
Understanding Linux Kernel Modules
Exam Pass App — mais de 7.000 questões LPI, offline, em 5 idiomas, disponível no Android e na App Store
Available on
Google Play
Available on
App Store

Use the lsmod and modprobe commands to add functionality to your Linux

lsmod utility

lsmod is a simple utility that formats the contents of the /proc/modules directory, showing the Kernel modules that are loaded in memory.

$ lsmod

Module                  Size  Used by

tun                    20151  2

ipv6                  344169  22

binfmt_misc             7359  1

crc32c_intel           14455  0

microcode             12859  0

ext4                  509228  2

crc16                   1691  1 ext4

jbd2                  104528  1 ext4

mbcache                 7966  1 ext4

modprobe utility

modprobe adds or removes a module from the Linux Kernel. It looks for modules in the /lib/modules/kernel_version directory. These modules can be device drivers, filesystem support, or even specific functions such as cryptography.

In addition to the module name, modprobe accepts parameters that can be passed to the Kernel for the proper functioning of the device or functionality.

# modprobe ipv6

Loads the IPv6 support module.

# modprobe –r ipv6

Removes the IPv6 support module.

Uira Ribeiro

Prof. Uirá Ribeiro

Chair do Board do Linux Professional Institute

After years of watching professionals waste hours on simple tasks because they didn't know the right Linux tools, I decided to teach.
Today I'm the author of most of LPI's official Learning Materials and mentor to over 14,000 certified students.

See my full story →

That was just one piece. The course teaches the whole path — from your first command to exam day.

Certificação Linux — a plataforma líder em certificações Linux no Brasil
WhatsApp