IT科技

當前位置 /首頁/IT科技 > /列表

modinfo命令詳解,linux

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命令詳解

TAG標籤:命令 modinfo linux #