Show Table of Contents
25.2. モジュール情報の表示
modinfo <module_name> コマンドを実行すると、カーネルモジュールに関する詳しい情報を表示できます。
注記
module-init-tools ユーティリティの 1 つに引数としてカーネルモジュールの名前を入力する場合、拡張子である
.ko を名前の最後に付けないで下さい。カーネルモジュールの名前に拡張子は付きませんが、それらの対応するファイルには付いています。
例として、Intel PRO/1000 ネットワークドライバーである
e1000e モジュールに関する情報を表示するには、以下を実行します:
例25.1 lsmod を使用したカーネルモジュール情報の一覧表示
~]#modinfo e1000efilename: /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* [aliasの数行は省略] 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出力から省略されるため、以下を実行した方がより役立ちます。例25.2 モジュールパラメーターの一覧表示
~]#
modinfo e1000e | grep "^parm" | sortparm: 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)

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.