此内容没有您所选择的语言版本。
31.2. Displaying Information About a Module
You can display detailed information about a kernel module by running the
modinfo <module_name>
command.
Note
When entering the name of a kernel module as an argument to one of the module-init-tools utilities, do not append a
.ko
extension to the end of the name. Kernel module names do not have extensions: their corresponding files do.
For example, to display information about the
e1000e
module, which is the Intel PRO/1000 network driver, run:
Example 31.1. Listing information about a kernel module with lsmod
Here are descriptions of a few of the fields in
modinfo
output:
- filename
- The absolute path to the
.ko
kernel object file. You can usemodinfo -n
as a shortcut command for printing only thefilename
field. - description
- A short description of the module. You can use
modinfo -d
as a shortcut command for printing only the description field. - alias
- The
alias
field appears as many times as there are aliases for a module, or is omitted entirely if there are none. - depends
- This field contains a comma-separated list of all the modules this module depends on.
Note
If a module has no dependencies, thedepends
field may be omitted from the output. - parm
- Each
parm
field presents one module parameter in the formparameter_name:description
, where:- parameter_name is the exact syntax you should use when using it as a module parameter on the command line, or in an option line in a
.conf
file in the/etc/modprobe.d/
directory; and, - description is a brief explanation of what the parameter does, along with an expectation for the type of value the parameter accepts (such as int, unit or array of int) in parentheses.
You can list all parameters that the module supports by using the-p
option. However, because useful value type information is omitted frommodinfo -p
output, it is more useful to run:Example 31.2. Listing module parameters
Copy to Clipboard Copied! Toggle word wrap Toggle overflow