1modinfo(1M) System Administration Commands modinfo(1M)
2
3
4
6 modinfo - display information about loaded kernel modules
7
9 /usr/sbin/modinfo [-c] [-w] [-i module-id]
10
11
13 The modinfo utility displays information about the loaded modules. The
14 format of the information is as follows:
15
16 Id Loadaddr Size Info Rev Module Name
17
18
19
20 where Id is the module ID, Loadaddr is the starting text address in
21 hexadecimal, Size is the size of text, data, and bss in hexadecimal
22 bytes, Info is module specific information, Rev is the revision of the
23 loadable modules system, and Module Name is the filename and descrip‐
24 tion of the module.
25
26
27 The module specific information is the block and character major num‐
28 bers for drivers, the system call number for system calls, and unspeci‐
29 fied for other module types.
30
32 The following options are supported:
33
34 -c Display the number of instances of the module loaded
35 and the module's current state.
36
37
38 -i module-id Display information about this module only.
39
40
41 -w Do not truncate module information at 80 characters.
42
43
45 Example 1 Displaying the Status of a Module
46
47
48 The following example displays the status of module 2:
49
50
51 example% modinfo -i 2
52 Id Loadaddr Size Info Rev Module Name
53 2 ff08e000 1734 - 1 swapgeneric (root and swap configuration)
54
55
56
57 Example 2 Displaying the Status of Kernel Modules
58
59
60 The following example displays the status of some kernel modules:
61
62
63 example% modinfo
64 Id Loadaddr Size Info Rev Module Name
65 2 ff08e000 1734 - 1 swapgeneric
66 4 ff07a000 3bc0 - 1 specfs (filesystem for specfs)
67 6 ff07dbc0 2918 - 1 TS (time sharing sched class)
68 7 ff0804d8 49c - 1 TS_DPTBL (Time sharing dispatch table)
69 8 ff04a000 24a30 2 1 ufs (filesystem for ufs)
70 9 ff080978 c640 226 1 rpcmod (RPC syscall)
71 9 ff080978 c640 - 1 rpcmod (rpc interface str mod)
72 10 ff08cfb8 2031c - 1 ip (IP Streams module)
73 10 ff08cfb8 2031c 2 1 ip (IP Streams device)
74
75
76
77
78 Example 3 Using the -c Option
79
80
81 Using the modinfo command with the -c option displays the number of
82 instances of the module loaded and the module's current state.
83
84
85 example% modinfo -c
86 Id Loadcnt Module Name State
87 1 0 krtld UNLOADED/UNINSTALLED
88 2 0 genunix UNLOADED/UNINSTALLED
89 3 0 platmod UNLOADED/UNINSTALLED
90 4 0 SUNW,UltraSPARC-IIi UNLOADED/UNINSTALLED
91 5 0 cl_bootstrap UNLOADED/UNINSTALLED
92 6 1 specfs LOADED/INSTALLED
93 7 1 swapgeneric UNLOADED/UNINSTALLED
94 8 1 TS LOADED/INSTALLED
95 9 1 TS_DPTBL LOADED/INSTALLED
96 10 1 ufs LOADED/INSTALLED
97 11 1 fssnap_if LOADED/INSTALLED
98
99
100
102 See attributes(5) for descriptions of the following attributes:
103
104
105
106
107 ┌─────────────────────────────┬─────────────────────────────┐
108 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
109 ├─────────────────────────────┼─────────────────────────────┤
110 │Availability │SUNWcsu │
111 ├─────────────────────────────┼─────────────────────────────┤
112 │Interface Stability │Evolving │
113 └─────────────────────────────┴─────────────────────────────┘
114
116 modload(1M), modunload(1M), attributes(5)
117
118
119
120SunOS 5.11 1 Oct 2002 modinfo(1M)