Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
Wat het doet
modinfo NAME reads the module file (also when it is not loaded). The parm: lines list the parameters you can set with modprobe or in /etc/modprobe.d/. The alias: lines show which hardware IDs the module supports.
Zo schrijf je het
modinfo [OPTION]... MODULE|FILE...Opties 11
Meest gebruikt
Niets past bij dit filter.
Voorbeelden 10
$ als gewone gebruiker# als root (of met sudo)
1All information
modinfo xfs filename: /lib/modules/6.12.0-55.9.1.el10_0.x86_64/kernel/fs/xfs/xfs.ko.xz description: SGI XFS with ACLs, security attributes, realtime, quota, no debug enabled license: GPLPlus depends, signature and more.
2Parameters of a module
modinfo -p loop max_loop:Maximum number of loop devices (int) max_part:Maximum number of partitions per loop device (int)Set them with
options loop max_part=8.3Only the file
modinfo -n vfatWhere the .ko file is.
4Dependencies
modinfo -F depends vfat fatmodprobe loads these first.
5Hardware IDs a driver supports
modinfo -F alias e1000e | headMatch with
lspci -nnIDs.6Is the module signed? (Secure Boot)
modinfo -F signer xfsRed Hat signs its modules; unsigned ones do not load with Secure Boot.
7Current value of a parameter
cat /sys/module/loop/parameters/max_partmodinfo shows the options; /sys shows the active value.
8Modules of another kernel
modinfo -k 6.12.0-55.el10.x86_64 xfs | head -2Check before you boot an older kernel.
9Description only
modinfo -d usb-storageShort text.
10License (tainted kernel check)
modinfo -l nvidia 2>/dev/nullNon-GPL modules taint the kernel; support may ask.
Niets past bij dit filter.
Exitcodes
0 :: Done. 1 :: Module not found or error.