Lsmod
   HOME

TheInfoList



OR:

lsmod is a command on
Linux Linux ( or ) is a family of open-source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991, by Linus Torvalds. Linux is typically packaged as a Linux distribution, which ...
systems. It shows which
loadable kernel module In computing, a loadable kernel module (LKM) is an object file that contains code to extend the running kernel, or so-called ''base kernel'', of an operating system. LKMs are typically used to add support for new hardware (as device drivers) and/ ...
s are currently loaded. An example terminal print after running lsmod command: Module Size Used by af_packet 27392 2 8139too 30592 0 snd_cs46xx 96872 3 snd_pcm_oss 55808 1 snd_mixer_oss 21760 2 snd_pcm_oss ip6table_filter 7424 1 ip6_tables 19728 1 ip6table_filter
ipv6 Internet Protocol version 6 (IPv6) is the most recent version of the Internet Protocol (IP), the communication protocol, communications protocol that provides an identification and location system for computers on networks and routes traffic ...
290404 22
xfs XFS is a high-performance 64-bit journaling file system created by Silicon Graphics, Inc (SGI) in 1993. It was the default file system in SGI's IRIX operating system starting with its version 5.3. XFS was ported to the Linux kernel in 2001; as ...
568384 4 sis900 18052 5
libata libATA is a library used inside the Linux kernel to support ATA host controllers and devices. libATA provides an ATA driver API, class transports for ATA and ATAPI devices, and SCSI / ATA Translation for ATA devices according to the T10 SAT spe ...
169920 1 pata_sis scsi_mod 158316 3 usb_storage,sd_mod,libata usbcore 155312 6 ohci_hcd,
usb_storage The USB mass storage device class (also known as USB MSC or UMS) is a set of computing communications protocols, specifically a USB Device Class, defined by the USB Implementers Forum that makes a USB device accessible to a host computing devic ...
, usbhid "Module" denotes the name of the module. "Size" denotes the size of the module (not memory used) in Bytes. "Used by" shows that number of times the module is currently in use by running programs. Next to this is a list of other modules which refer to this one. The "Used by" list is sometimes incomplete. 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.


See also

*
modprobe modprobe is a Linux program originally written by Rusty Russell and used to add a loadable kernel module to the Linux kernel or to remove a loadable kernel module from the kernel. It is commonly used indirectly: udev relies upon modprobe to load d ...


References

Linux kernel-related software {{linux-stub