Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

modinfo(8) [linux man page]

modinfo(8)						      System Manager's Manual							modinfo(8)

NAME
modinfo -- program to show information about a Linux Kernel module SYNOPSIS
modinfo [-0] [-F field] [-k kernel] [modulename|filename ...] modinfo -V modinfo -h DESCRIPTION
modinfo extracts information from the Linux Kernel modules given on the command line. If the module name is not a filename, then the /lib/modules/version directory is searched, as is also done by modprobe(8) when loading kernel modules. modinfo by default lists each attribute of the module in form fieldname : value, for easy reading. The filename is listed the same way (although it's not really an attribute). This version of modinfo can understand modules of any Linux Kernel architecture. OPTIONS
-V --version Print the modinfo version. -F --field Only print this field value, one per line. This is most useful for scripts. Field names are case-insenitive. Common fields (which may not be in every module) include author, description, license, parm, depends, and alias. There are often multiple parm, alias and depends fields. The special field filename lists the filename of the module. -k kernel Provide information about a kernel other than the running one. This is particularly useful for distributions needing to extract information from a newly installed (but not yet running) set of kernel modules. For example, you wish to find which firmware files are needed by various modules in a new kernel for which you must make an initrd/initramfs image prior to booting. -0 --null Use the ASCII zero character to separate field values, instead of a new line. This is useful for scripts, since a new line can theoretically appear inside a field. -a -d -l -p -n These are shortcuts for author, description, license. parm and filename respectively, to ease the transition from the old modu- tils modinfo. COPYRIGHT
This manual page originally Copyright 2003, Rusty Russell, IBM Corporation. Maintained by Jon Masters and others. SEE ALSO
modprobe(8) modinfo(8)

Check Out this Related Man Page

modinfo(1M)                                               System Administration Commands                                               modinfo(1M)

NAME
modinfo - display information about loaded kernel modules SYNOPSIS
/usr/sbin/modinfo [-c] [-w] [-i module-id] DESCRIPTION
The modinfo utility displays information about the loaded modules. The format of the information is as follows: Id Loadaddr Size Info Rev Module Name where Id is the module ID, Loadaddr is the starting text address in hexadecimal, Size is the size of text, data, and bss in hexadecimal bytes, Info is module specific information, Rev is the revision of the loadable modules system, and Module Name is the filename and description of the module. The module specific information is the block and character major numbers for drivers, the system call number for system calls, and unspeci- fied for other module types. OPTIONS
The following options are supported: -c Display the number of instances of the module loaded and the module's current state. -i module-id Display information about this module only. -w Do not truncate module information at 80 characters. EXAMPLES
Example 1: Displaying the Status of a Module The following example displays the status of module 2: example% modinfo -i 2 Id Loadaddr Size Info Rev Module Name 2 ff08e000 1734 - 1 swapgeneric (root and swap configuration) Example 2: Displaying the Status of Kernel Modules The following example displays the status of some kernel modules: example% modinfo Id Loadaddr Size Info Rev Module Name 2 ff08e000 1734 - 1 swapgeneric 4 ff07a000 3bc0 - 1 specfs (filesystem for specfs) 6 ff07dbc0 2918 - 1 TS (time sharing sched class) 7 ff0804d8 49c - 1 TS_DPTBL (Time sharing dispatch table) 8 ff04a000 24a30 2 1 ufs (filesystem for ufs) 9 ff080978 c640 226 1 rpcmod (RPC syscall) 9 ff080978 c640 - 1 rpcmod (rpc interface str mod) 10 ff08cfb8 2031c - 1 ip (IP Streams module) 10 ff08cfb8 2031c 2 1 ip (IP Streams device) Example 3: Using the -c Option Using the modinfo command with the -c option displays the number of instances of the module loaded and the module's current state. example% modinfo -c Id Loadcnt Module Name State 1 0 krtld UNLOADED/UNINSTALLED 2 0 genunix UNLOADED/UNINSTALLED 3 0 platmod UNLOADED/UNINSTALLED 4 0 SUNW,UltraSPARC-IIi UNLOADED/UNINSTALLED 5 0 cl_bootstrap UNLOADED/UNINSTALLED 6 1 specfs LOADED/INSTALLED 7 1 swapgeneric UNLOADED/UNINSTALLED 8 1 TS LOADED/INSTALLED 9 1 TS_DPTBL LOADED/INSTALLED 10 1 ufs LOADED/INSTALLED 11 1 fssnap_if LOADED/INSTALLED ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
modload(1M), modunload(1M), attributes(5) SunOS 5.10 1 Oct 2002 modinfo(1M)
Man Page