当前位置:懂科普 >

IT科技

> linux modinfo命令详解

linux modinfo命令详解

1、modinfo命令简介:

modinfo命令用于显示kernel模块的信息。modprobe可载入指定的个别模块,或是载入一组相依的模块。modprobe会根据depmod所产生的相依关系,决定要载入哪些模块。若在载入过程中发生错误,在modprobe会卸载整组的模块。

2、语法:

modinfo [-adhpV][模块文件]

3、参数:

-a或--author  显示模块开发人员

-d或--description  显示模块的说明。

-h或--help  显示modinfo的参数使用方法。

-p或--parameters  显示模块所支持的参数。

-V或--version  显示版本信息。

举例:

显示sg模块的信息。

# modinfo sg

filename:    /lib/modules/2.6.9-42.ELsmp/kernel/drivers/scsi/sg.ko

author:     Douglas Gilbert

description:  SCSI generic (sg) driver

license:    GPL

version:    3.5.31 B0B0CB1BB59F0669A1F0D6B

parm:      def_reserved_size:size of buffer reserved for each fd

parm:      allow_dio:allow direct I/O (default: 0 (disallow))

alias:     char-major-21-*

vermagic:    2.6.9-42.ELsmp SMP 686 REGPARM 4KSTACKS gcc-3.4

depends:    scsi_mod

linux modinfo命令详解

标签: linux modinfo 命令
  • 文章版权属于文章作者所有,转载请注明 https://dongkepu.com/itkeji/j8ggmv.html