modinfo:Linux 中用于显示内核模块(kernel module)信息的命令,常用于查看模块的版本、作者、许可证、依赖关系、参数、文件路径等。
/ˌmɒdˈɪnfoʊ/
modinfo e1000
查看 e1000 网卡驱动模块的信息。
Before loading the driver, I used modinfo to check its parameters, dependencies, and license to ensure it matched the running kernel.
在加载驱动之前,我用 modinfo 检查了它的参数、依赖关系和许可证,以确保它与正在运行的内核匹配。
modinfo 是由 mod(module,模块的缩写)+ info(information,信息)组合而成的命令名,字面意思就是“模块信息”。它通常读取模块文件中的元数据(如 .ko 模块里嵌入的描述、作者、别名、依赖等)并输出。
modinfo(8) 手册页)