Chap7 Kernel Modules Flashcards
kernel modules
They incorporate device drivers to control hardware either inside the system or attached peripherally.
LKM
Loadable Kernel Module
LKM device drivers
For a specific piece of hardware like ethernet cards, kernel uses it to communicate
LKM filesystem drivers
interprets the contents of a filesystem as files and directories and such. IE. for ext2 filesystem type, MS-DOS type, and NFS
LKM system calls
read a file, to create a new process, shutdown a system. You can invent a system call of your own and install it as an LKM.
lsmod
list loaded modules
insmod
directly load modules
rmmod
directly remove modules
modprobe
load or unload modules, using a pre-built module database with dependency information
depmod
rebuild the module dependency database; needed by modprobe and modinfo
modinfo
display info about a module
load module
$ sudo /sbin/modprobe module_name
remove module
$ sudo /sbin/modprobe -r module_name
/sys/modules
Information about modules
/etc/modprobe.d
is a directory to control parameters when loading with modprobe. IE. aliases, blacklist