Latest web development tutorials

Linux modinfo命令

Linux 命令大全 Linux命令大全

Linux modinfo命令用於顯示kernel模塊的信息。

modinfo會顯示kernel模塊的對象文件,以顯示該模塊的相關信息。

語法

modinfo [-adhpV][模块文件]

參數 :

  • -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 命令大全 Linux命令大全