這個命令是顯示載入內核中的模塊信息。其常用的參數就是-c、-w和-i,下來一一介紹。
QUOTE:[root@sol01 /]#modinfo
Id Loadaddr Size Info Rev Module Name
0 fe800000 c5ba8 - 0 unix ()
1 fe884630 13c22 - 0 krtld ()
2 fe892f68 15c280 - 0 genunix ()
4 fe9b6000 3c20 1 1 specfs (filesystem for specfs)
5 fa380000 13e78 155 1 dtrace (Dynamic Tracing)
6 fe9b9a78 36d0 16 1 devfs (devices filesystem 1.15)
8 fe9bcea8 2c14 1 1 TS (time sharing sched class)
9 fe9bf55c 87c - 1 TS_DPTBL (Time sharing dispatch table)
11 fe9bf5b8 5f28 - 1 pci_autoconfig (PCI BIOS interface 1.43)
12 fe9c3e78 429a8 - 1 acpica (ACPI interpreter 1.4)
13 fe9fd6d8 3110 - 1 cpu.generic (Generic x86 CPU Module)
15 fea003d0 227c 1 1 uppc (UniProcessor PC)
16 fea024a4 94ec 2 1 pcplusmp (pcplusmp v1.4 compatible 1.115)
17 fea0a148 3a04 1 1 rootnex (i86pc root nexus 1.136)
18 fea0d954 124 57 1 options (options driver)
19 fea0da08 7bc 2 1 pseudo (nexus driver for 'pseudo' 1.28)
20 fea0e02c 464 11 1 clone (Clone Pseudodriver 'clone')
21 fea0e340 1113c 174 1 scsi_vhci (SCSI VHCI Driver 1.53)
22 fea1e134 c840 - 1 scsi (SCSI Bus Utility Routines)
23 fea239ac 19a8 120 1 isa (isa nexus driver for 'ISA' 1.38)
24 fea24f3c 1a84 - 1 busra (Bus Resource Allocator (BUSRA) )
25 fea26750 10ac 12 1 sad (STREAMS Administrative Driver ')
27 fea2767c 2e0c0 2 1 ufs (filesystem for ufs)
28 fea533d4 15c - 1 fssnap_if (File System Snapshot Interface)
29 fea534d0 4084 246 1 ppm (platform pm driver v1.17)
30 fea570fc 3e1c 86 1 pci (host to PCI nexus driver 1.68)
31 fea5acb0 4404 - 1 pcihp (PCI nexus hotplug support v1.63)
32 fea5ee0c ba4 - 1 hpcsvc (hot-plug controller services v1)
33 fea5f938 aac 210 1 pci-ide (pciide nexus driver for 'PCI-ID)
34 fea601a4 a98c 112 1 ata (ATA AT-bus attachment disk cont)
35 fea6a1b8 23ac 102 1 cmdk (Common Direct Access Disk 1.71)
36 fea6c40c 22ec - 1 dadk (Direct Attached Disk 1.46)
37 fea6dfd8 694 - 1 gda (Generic Direct Attached Device )
38 fea6e5b4 15d4 - 1 strategy (Device Strategy Objects 1.31)
39 fea6fa30 4ba0 - 1 cmlb (Common Labeling module 1.4)
40 fea73ae8 24e8 17 1 ctfs (contract filesystem)
.......不帶參數顯示所以的模塊。
-c參數:顯示的模塊狀態
-w參數:不要截取模塊信息在80個字符
-i module_id參數:只顯示某一模塊的信息
QUOTE:[root@sol01 /]#modinfo -c |grep 221
221 1 ptm LOADED/INSTALLED
[root@sol01 /]#modinfo -w |grep 221
221 fa113624 b5c 23 1 ptm (Master streams driver 'ptm' 1.4)
[root@sol01 /]#modinfo -i 221
Id Loadaddr Size Info Rev Module Name
221 fa113624 b5c 23 1 ptm (Master streams driver 'ptm' 1.4)
[root@sol01 /]#