31.2. モジュール情報の表示
カーネルモジュールの詳細情報を表示するには、modinfo < module_name& gt; コマンドを実行します。
モジュール名が .ko で終了しない
カーネルモジュール名を module-init-tools ユーティリティーのいずれかの引数として入力する場合は、名前の末尾に拡張子
.ko
を付けないでください。カーネルモジュール名には拡張子はありません。対応するファイルには拡張子があります。
たとえば、Intel PRO/1000 ネットワークドライバーである
e1000e
モジュールに関する情報を表示するには、以下のコマンドを実行します。
例31.1 lsmod を使用したカーネルモジュール情報の一覧表示
~]# modinfo e1000e
filename: /lib/modules/2.6.32-71.el6.x86_64/kernel/drivers/net/e1000e/e1000e.ko
version: 1.2.7-k2
license: GPL
description: Intel(R) PRO/1000 Network Driver
author: Intel Corporation, <linux.nics@intel.com>
srcversion: 93CB73D3995B501872B2982
alias: pci:v00008086d00001503sv*sd*bc*sc*i*
alias: pci:v00008086d00001502sv*sd*bc*sc*i*
[some alias
lines omitted]
alias: pci:v00008086d0000105Esv*sd*bc*sc*i*
depends:
vermagic: 2.6.32-71.el6.x86_64 SMP mod_unload modversions
parm: copybreak:Maximum size of packet that is copied to a new buffer on receive (uint)
parm: TxIntDelay:Transmit Interrupt Delay (array of int)
parm: TxAbsIntDelay:Transmit Absolute Interrupt Delay (array of int)
parm: RxIntDelay:Receive Interrupt Delay (array of int)
parm: RxAbsIntDelay:Receive Absolute Interrupt Delay (array of int)
parm: InterruptThrottleRate:Interrupt Throttling Rate (array of int)
parm: IntMode:Interrupt Mode (array of int)
parm: SmartPowerDownEnable:Enable PHY smart power down (array of int)
parm: KumeranLockLoss:Enable Kumeran lock loss workaround (array of int)
parm: WriteProtectNVM:Write-protect NVM [WARNING: disabling this can lead to corrupted NVM] (array of int)
parm: CrcStripping:Enable CRC Stripping, disable if your BMC needs the CRC (array of int)
parm: EEE:Enable/disable on parts that support the feature (array of int)
以下は、modinfo 出力のフィールドの一部を表しています。
- filename
.ko
カーネルオブジェクトファイルへの絶対パス。modinfo -n を、filename
フィールドのみを出力するショートカットコマンドとして使用できます。- description
- モジュールの簡単な説明。modinfo -d を、説明フィールドのみを出力するショートカットコマンドとして使用できます。
- alias
alias
フィールドは、モジュールのエイリアスが存在する回数だけ表示され、存在しない場合は完全に省略されます。- 依存
- このフィールドには、このモジュールが依存するすべてのモジュールのコンマ区切りリストが含まれます。depends フィールドの削除モジュールに依存関係がない場合、
depends
フィールドは出力から省略される可能性があります。 - parm
- 各
parm
フィールドは、parameter_name:description
の形式でモジュールパラメーターを 1 つ表示します。ここでは以下のようになります。- PARAMETER _NAME は、コマンドラインでモジュールパラメーターとして使用する場合や、
/etc/modprobe.d/
ディレクトリーの.conf
ファイルのオプション行に使用すべき構文です。 - description は、パラメーターの動作を簡単に説明し、パラメーターが受け入れる値のタイプ( int、unit、または array of intなど)を括弧で示すことが想定されています。
-p
オプションを使用すると、モジュールがサポートするパラメーターの一覧を表示できます。ただし、便利な値タイプの情報は modinfo -p の出力から省略されるため、以下を実行すると便利です。例31.2 モジュールパラメーターの一覧表示
~]# modinfo e1000e | grep "^parm" | sort parm: copybreak:Maximum size of packet that is copied to a new buffer on receive (uint) parm: CrcStripping:Enable CRC Stripping, disable if your BMC needs the CRC (array of int) parm: EEE:Enable/disable on parts that support the feature (array of int) parm: InterruptThrottleRate:Interrupt Throttling Rate (array of int) parm: IntMode:Interrupt Mode (array of int) parm: KumeranLockLoss:Enable Kumeran lock loss workaround (array of int) parm: RxAbsIntDelay:Receive Absolute Interrupt Delay (array of int) parm: RxIntDelay:Receive Interrupt Delay (array of int) parm: SmartPowerDownEnable:Enable PHY smart power down (array of int) parm: TxAbsIntDelay:Transmit Absolute Interrupt Delay (array of int) parm: TxIntDelay:Transmit Interrupt Delay (array of int) parm: WriteProtectNVM:Write-protect NVM [WARNING: disabling this can lead to corrupted NVM] (array of int)