Lsmod
Encyclopedia
lsmod is a command on Linux
Linux
Linux is a Unix-like computer operating system assembled under the model of free and open source software development and distribution. The defining component of any Linux system is the Linux kernel, an operating system kernel first released October 5, 1991 by Linus Torvalds...

 systems which prints the contents of the /proc/modules
Procfs
procfs is a special filesystem in UNIX-like operating systems that presents information about processes and other system information in a hierarchical file-like structure, providing a more convenient and standardized method for dynamically accessing process data held in the kernel than traditional...

file. It shows which loadable kernel module
Loadable Kernel Module
In computing, a loadable kernel module is an object file that contains code to extend the running kernel, or so-called base kernel, of an operating system...

s are currently loaded.

Abridged example output:
# lsmod
Module Size Used by
af_packet 27392 2
8139too
Realtek
Realtek Semiconductor Corp. , a fabless IC design house situated in the Hsinchu Science Park, Hsinchu, Taiwan, was founded in October 1987, and subsequently approved as a listed company on the Taiwan Stock Exchange in 1998...

  30592 0
snd_cs46xx 96872 3
snd_pcm_oss 55808 1
snd_mixer_oss 21760 2 snd_pcm_oss
ip6table filter
Iptables
iptables is a user space application program that allows a system administrator to configure the tables provided by the Linux kernel firewall and the chains and rules it stores...

  7424 1
ip6 tables
Iptables
iptables is a user space application program that allows a system administrator to configure the tables provided by the Linux kernel firewall and the chains and rules it stores...

  19728 1 ip6table_filter
ipv6
IPv6
Internet Protocol version 6 is a version of the Internet Protocol . It is designed to succeed the Internet Protocol version 4...

  290404 22
xfs
XFS
XFS is a high-performance journaling file system created by Silicon Graphics, Inc. It is the default file system in IRIX releases 5.3 and onwards and later ported to the Linux kernel. XFS is particularly proficient at parallel IO due to its allocation group based design...

  568384 4
sis900
Silicon Integrated Systems
Silicon Integrated Systems is a company that manufactures, among other things, motherboard chipsets. The company was founded in 1987 in Hsinchu Science Park, Taiwan.-Business:...

  18052 5
libata  169920 1 pata_sis
scsi mod
SCSI
Small Computer System Interface is a set of standards for physically connecting and transferring data between computers and peripheral devices. The SCSI standards define commands, protocols, and electrical and optical interfaces. SCSI is most commonly used for hard disks and tape drives, but it...

  158316 3 usb_storage,sd_mod,libata
usbcore  155312 6 ohci hcd, usb storage, usbhid
USB human interface device class
In computing, the USB human interface device class is a part of the USB specification for computer peripherals: it specifies a device class for human interface devices such as keyboards, mice, game controllers and alphanumeric display devices.The USB HID class is defined in a number of documents...



"Module" denotes the name of the module, "Size" the amount of memory it uses, "Used" its use count, and "by" a list of referring modules. If the module controls its own unloading via a can_unload routine then the use count displayed by lsmod is always -1, irrespective of the real use count.

External links

The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK