Display information about kernel modules
You can use the modinfo command to display detailed information about the specified kernel module.
Before you begin
- The
kmodpackage is installed.
Procedure
$ modinfo <pass:quotes[KERNEL_MODULE_NAME]>
For example:
$ modinfo virtio_net
filename: /lib/modules/6.12.0-55.9.1.el10_0.x86_64/kernel/drivers/net/virtio_net.ko.xz
license: GPL
description: Virtio network driver
rhelversion: 9.0
srcversion: 8809CDDBE7202A1B00B9F1C
alias: virtio:d00000001v*
depends: net_failover
retpoline: Y
intree: Y
name: virtio_net
vermagic: 6.12.0-55.9.1.el10_0.x86_64 SMP mod_unload modversions
...
parm: napi_weight:int
parm: csum:bool
parm: gso:bool
parm: napi_tx:bool
You can query information about all available modules, regardless of whether they are loaded. The parm entries show parameters the user is able to set for the module, and what type of value they expect.
When entering the name of a kernel module, do not append the .ko.xz extension to the end of the name. Kernel module names do not have extensions. However, their corresponding files do.