DEPMOD(8) | depmod | DEPMOD(8) |
NAME¶
depmod - Generate modules.dep and map files.
SYNOPSIS¶
depmod [-b basedir]
[-o outdir] [-e]
[-E Module.symvers]
[-F System.map] [-n] [-v] [-A]
[-P prefix] [-w] [version]
depmod [-e] [-E Module.symvers]
[-F System.map] [-n] [-v] [-P
prefix]
[-w] [version] [filename...]
DESCRIPTION¶
Linux kernel modules can provide services (called "symbols") for other modules to use (using one of the EXPORT_SYMBOL variants in the code). If a second module uses this symbol, that second module clearly depends on the first module. These dependencies can get quite complex.
depmod creates a list of module dependencies by reading each module under /lib/modules/version and determining what symbols it exports and what symbols it needs. By default, this list is written to modules.dep, and a binary hashed version named modules.dep.bin, in the same directory. If filenames are given on the command line, only those modules are examined (which is rarely useful unless all modules are listed). depmod also creates a list of symbols provided by modules in the file named modules.symbols and its binary hashed version, modules.symbols.bin. Finally, depmod will output a file named modules.devname if modules supply special device names (devname) that should be populated in /dev on boot (by a utility such as systemd-tmpfiles).
If a version is provided, then that kernel version's module directory is used rather than the current kernel version (as returned by uname -r).
OPTIONS¶
-a --all
-A --quick
-b basedir --basedir basedir
-o outdir --outdir outdir
-C file or directory --config file or directory
-e --errsyms
-E Module.symvers --symvers Module.symvers
-F System.map --filesyms System.map
-h --help
-n --show --dry-run
-P
-v --verbose
-V --version
-w
COPYRIGHT¶
This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. Portions Copyright Jon Masters, and others.
SEE ALSO¶
AUTHORS¶
Numerous contributions have come from the linux-modules mailing list <linux-modules@vger.kernel.org> and Github. If you have a clone of kmod.git itself, the output of git-shortlog(1) and git-blame(1) can show you the authors for specific parts of the project.
Lucas De Marchi <lucas.de.marchi@gmail.com> is the current maintainer of the project.
2024-08-13 | kmod |