List Kernel Modules Loaded using Linux lsmod Command



Configuration for GNU Linux Fedora Computer using Linux Command

 

   List all modules loaded in the Linux kernel using lsmod command .  The Linux command example below use the lsmod command to list and display all Linux modules that is currently loaded in the kernel.  The lsmod command is the tools that convert the contents of /proc/modules in nice and readble by human.  The lsmod command below execute on Linux Fedora 9 operating system.

lsmod command example:

View and display loaded kernel modules using Linux lsmod command

[root@fedora ~]# lsmod

Module                  Size  Used by

nls_utf8                5632  1

ib_iser                30136  0

rdma_cm                26112  1 ib_iser

ib_cm                  32080  1 rdma_cm

iw_cm                  10884  1 rdma_cm

ib_sa                  20296  2 rdma_cm,ib_cm

ib_mad                 33432  2 ib_cm,ib_sa

ib_core                43648  6 ib_iser,rdma_cm,ib_cm,iw_cm,ib_sa,ib_mad

ib_addr                 9476  1 rdma_cm

iscsi_tcp              18820  0

libiscsi               24576  2 ib_iser,iscsi_tcp

scsi_transport_iscsi    28184  4 ib_iser,iscsi_tcp,libiscsi

fuse                   41116  3

sunrpc                151412  3

ipt_REJECT              6784  2

nf_conntrack_ipv4      11396  2

iptable_filter          6528  1

ip_tables              13840  1 iptable_filter

ip6t_REJECT             7552  2

xt_tcpudp               6656  2

nf_conntrack_ipv6      15864  2

xt_state                5888  4

nf_conntrack           49748  3 nf_conntrack_ipv4,nf_conntrack_ipv6,xt_state

ip6table_filter         6400  1

ip6_tables             14736  1 ip6table_filter

x_tables               15236  6 ipt_REJECT,ip_tables,ip6t_REJECT,xt_tcpudp,xt_state,ip6_tables

loop                   16772  0

dm_multipath           18056  0

ipv6                  221660  14 ip6t_REJECT,nf_conntrack_ipv6

ppdev                  10244  0

snd_ens1371            23684  3

gameport               13708  1 snd_ens1371

snd_rawmidi            22400  1 snd_ens1371

snd_ac97_codec         94368  1 snd_ens1371

ac97_bus                5504  1 snd_ac97_codec

snd_seq_dummy           6660  0

snd_seq_oss            30364  0

snd_seq_midi_event      9600  1 snd_seq_oss

snd_seq                48448  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event

parport_pc             25364  0

snd_seq_device         10124  4 snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq

parport                32084  2 ppdev,parport_pc

snd_pcm_oss            42496  0

floppy                 52084  0

snd_mixer_oss          16768  1 snd_pcm_oss

snd_pcm                67076  3 snd_ens1371,snd_ac97_codec,snd_pcm_oss

snd_timer              21640  2 snd_seq,snd_pcm

pcspkr                  6272  0

snd                    48312  17 snd_ens1371,snd_rawmidi,snd_ac97_codec,snd_seq_dummy,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer

soundcore               9288  1 snd

snd_page_alloc         11400  1 snd_pcm

pcnet32                30964  0

mii                     8192  1 pcnet32

ac                      8068  0

i2c_piix4              10892  0

button                 10000  0

BusLogic               65372  0

i2c_core               20628  1 i2c_piix4

sg                     31028  0

sr_mod                 17064  1

cdrom                  32796  1 sr_mod

dm_snapshot            18468  0

dm_zero                 5632  0

dm_mirror              26116  0

dm_mod                 48980  9 dm_multipath,dm_snapshot,dm_zero,dm_mirror

ata_generic             8964  0

ata_piix               20100  3

pata_acpi               8192  0

libata                126688  3 ata_generic,ata_piix,pata_acpi

sd_mod                 25624  3

scsi_mod              120820  9 ib_iser,iscsi_tcp,libiscsi,scsi_transport_iscsi,BusLogic,sg,sr_mod,libata,sd_mod

ext3                  108424  2

jbd                    40852  1 ext3

mbcache                10116  1 ext3

uhci_hcd               22928  0

ohci_hcd               22276  0

ehci_hcd               32268  0

[root@fedora ~]#

 

Display the contents of /proc/modules using cat command.

Display the contents of loaded kernel modules in /proc/modules using Linux cat command

[root@fedora ~]# cat /proc/modules

nls_utf8 5632 1 - Live 0xf42da000

ib_iser 30136 0 - Live 0xf4334000

rdma_cm 26112 1 ib_iser, Live 0xf432c000

ib_cm 32080 1 rdma_cm, Live 0xf4323000

iw_cm 10884 1 rdma_cm, Live 0xf422f000

ib_sa 20296 2 rdma_cm,ib_cm, Live 0xf4237000

ib_mad 33432 2 ib_cm,ib_sa, Live 0xf4319000

 




1 comments:

Anonymous said...

how can i play music file on linux? when i click to play it always show the message that missing plugin.
So, which package need to be installed to be able playing the music?