What is the analogy used for managing kernel modules?
Managing kernel modules is like organizing tools in a toolbox.
What command analyzes module dependencies and generates the modules.dep file?
depmod
What is the primary purpose of the depmod command?
To ensure the correct module loading order by creating/updating the dependency map.
What command would you use to view the dependency list for the usbcore module?
cat /lib/modules/$(uname -r)/modules.dep | grep usbcore
In the modules.dep file, what does the format <module_path>: <dependency1> [<dependency2> ...] indicate?
The module at <module_path> requires the listed dependency modules to be loaded first.
What command displays all currently loaded kernel modules?
lsmod
What three pieces of information does the lsmod output typically include?
Module name, size, and the count of other modules using it.
Name three things the lsmod command can help you identify.
What command provides detailed information about a specific kernel module?
modinfo
What modinfo output field gives a summary of the module’s function?
description
What modinfo field lists the modules that must be loaded before this one?
depends
What modinfo field shows configurable options for the module?
parm
What modinfo field is important for verifying legal distribution rights?
license
What are three primary uses for the modinfo command?
Debugging, verifying compatibility, and understanding module behavior before making changes.
In the dependency example, which module must be loaded first: usb-storage or usbcore?
usbcore must be loaded before usb-storage.
What does the command sudo depmod do?
It analyzes all modules and updates the system’s dependency file (modules.dep).