On Linux operating systems, the modinfo command shows information about a module inserted in the kernel.
Description
The modinfo command extracts information from the Linux kernel modules given on the command line. If module name is not a file name, then the /lib/modules/kernel-version directory is searched — the same directory searched by modprobe when loading kernel modules.
- Description
- Syntax
- Examples
- Related commands
- Linux commands help
By default, modinfo lists each attribute of the module in the form:
field name : value
The module file name is listed the same way.
modinfo can understand modules of any Linux kernel architecture.
Syntax
modinfo [-0] [-F field] [-k kernel] [module name|file name…]
modinfo -V
modinfo -h
Options
Examples
modinfo snd
Display all available information about the snd Linux kernel module. Output resembles the following:
file name: /lib/modules/3.2.0-4-686-pae/kernel/sound/core/snd.ko alias: char-major-116-* license: GPL description: Advanced Linux Sound Architecture driver for sound cards. author: Jaroslav Kysela <[email protected]> license: GPL description: Jack detection support for ALSA author: Mark Brown <[email protected]> depends: soundcore intree: Y vermagic: 3.2.0-4-686-pae SMP mod_unload modversions 686 parm: slots:Module names assigned to the slots. (array of charp) parm: major:Major # for sound driver. (int) parm: cards_limit:Count of auto-loadable sound cards. (int)
modinfo -F parm snd
Display all parm (parameter) fields for the snd Linux kernel module. Output resembles the following (note that the field name does not prefix the field values):
slots:Module names assigned to the slots. (array of charp) major:Major # for sound driver. (int) cards_limit:Count of auto-loadable sound cards. (int)
Related commands
depmod — Generate a list of kernel module dependencies and associated map files.insmod — Insert a module into the Linux kernel.lsmod — Show the status of Linux kernel modules.modprobe — Add and remove modules from the Linux kernel.rmmod — Remove a module from the Linux kernel.