commands

modinfo — Inspect module metadata

Inspect metadata in a matching module tree or a supplied module file. This does not load a module or prove it is safe. Use a fresh private workspace; No production workload is required.

Formal Syntax & Structure

linux syntaxlinux
modinfo [-F FIELD] MODULE

Parameters & Attributes

NameTypeDescription
-FoptionSelect field
FIELDoperandMetadata field
MODULEoperandAvailable module name or file

Return Value

exit status and output

Prints selected module metadata, or diagnostic information if the module cannot be found/read. Metadata lookup does not prove that a module is loaded or compatible with the running kernel.

Working Example

Example Snippetlinux
modinfo -F vermagic loop
Linux Reference