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