initrd-scanmod(1)

INITRD-SCANMOD(1) User Commands INITRD-SCANMOD(1)

NAME

initrd-scanmod - searches for kernel modules according to patterns.

SYNOPSIS

initrd-scanmod [options] [--] rules-file [rules-file ...]

DESCRIPTION

The utility uses a set of rules to find and show kernel modules. It shows the modules that satisfy all the rules. This utility reads rules for filtering from files. It can filter modules by the following criteria: alias , author , depends , description , filename , firmware , license , name and symbol .

OPTIONS

-k, --set-version=VERSION
use VERSION instead of `uname -r`;
-b, --base-dir=DIR
use DIR as filesystem root for /lib/modules;
-v, --verbose
print a message for each action;
-h, --help
display this help and exit;
-V, --version
output version information and exit.

RULES

The rules are in the format:


<keyword> <regular-expression>

All empty rules or starting with the ``#'' character are ignored. If the keyword begins with the prefix ``not-'' then the rule will be inverted.

name

This allows you to filter modules by the kernel module name.

alias

This allows you to search the aliases list of a kernel module. For example:


alias ^fs-

depends

Modules depend on other modules. This keyword allows you to filter modules based on dependencies. Example:


depends ^(.*,)?af_alg(,.*)?$

symbol

Also you can filter by module symbol names. This is a very shaky approach. The symbol names may change in the new kernel version and the filter will stop working. Some stable subsystems don't change often. Example:


symbol ^(nfs_.*|svc_.*)$

or


symbol ^register_virtio_driver

AUTHOR

Written by Alexey Gladkov.

REPORTING BUGS

Report bugs to authors.

COPYRIGHT

Copyright © 2018 Alexey Gladkov <gladkov.alexey@gmail.com>
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO

modinfo(1), modprobe(1), depinfo(1)

February 2024 initrd-scanmod version 2.31.0