功能
列出内核已载入模块的状态
描述
lsmod
以美观的方式列出 /proc/modules
的内容。
举例
列出当前加载的所有模块
$lsmod
输出为:
Module Size Used by
rfcomm 77824 4
ccm 20480 3
bnep 20480 2
intel_rapl 20480 0
x86_pkg_temp_thermal 16384 0
intel_powerclamp 16384 0
coretemp 16384 0
kvm 610304 0
irqbypass 16384 1 kvm
crct10dif_pclmul 16384 0
crc32_pclmul 16384 0
ghash_clmulni_intel 16384 0
snd_hda_codec_hdmi 49152 1
uvcvideo 86016 0
snd_hda_codec_conexant 24576 1
videobuf2_vmalloc 16384 1 uvcvideo
snd_hda_codec_generic 73728 1 snd_hda_codec_conexant
pcbc 16384 0
aesni_intel 188416 2
videobuf2_memops 16384 1 videobuf2_vmalloc
aes_x86_64 20480 1 aesni_intel
snd_hda_intel 45056 6
snd_hda_codec 126976 4 snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel
radeon 1462272 1
videobuf2_v4l2 24576 1 uvcvideo
videobuf2_core 40960 2 videobuf2_v4l2,uvcvideo
videodev 184320 3 videobuf2_core,videobuf2_v4l2,uvcvideo
arc4 16384 2
i915 1622016 24
media 40960 2 videodev,uvcvideo
rtl8192ce 61440 0
rtl_pci 32768 1 rtl8192ce
crypto_simd 16384 1 aesni_intel
snd_hda_core 81920 5 snd_hda_codec_generic,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_hwdep 20480 1 snd_hda_codec
ttm 106496 1 radeon
glue_helper 16384 1 aesni_intel
rtl8192c_common 57344 1 rtl8192ce
drm_kms_helper 172032 2 radeon,i915
btusb 45056 0
drm 401408 19 drm_kms_helper,radeon,i915,ttm
btrtl 16384 1 btusb
btbcm 16384 1 btusb
snd_pcm 98304 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
thinkpad_acpi 94208 1
nvram 16384 1 thinkpad_acpi
i2c_algo_bit 16384 2 radeon,i915
cryptd 24576 3 crypto_simd,ghash_clmulni_intel,aesni_intel
rtlwifi 77824 3 rtl_pci,rtl8192c_common,rtl8192ce
mac80211 786432 3 rtl_pci,rtlwifi,rtl8192ce
intel_cstate 20480 0
btintel 16384 1 btusb
snd_seq_midi 16384 0
snd_seq_midi_event 16384 1 snd_seq_midi
fb_sys_fops 16384 1 drm_kms_helper
snd_rawmidi 32768 1 snd_seq_midi
bluetooth 548864 31 btrtl,btintel,btbcm,bnep,btusb,rfcomm
intel_rapl_perf 16384 0
cfg80211 622592 2 rtlwifi,mac80211
snd_seq 65536 2 snd_seq_midi,snd_seq_midi_event
ecdh_generic 24576 1 bluetooth
syscopyarea 16384 1 drm_kms_helper
sysfillrect 16384 1 drm_kms_helper
sysimgblt 16384 1 drm_kms_helper
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi
input_leds 16384 0
joydev 24576 0
snd_timer 32768 2 snd_seq,snd_pcm
serio_raw 16384 0
snd 81920 24 snd_hda_codec_generic,snd_seq,snd_hda_codec_conexant,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,thinkpad_acpi,snd_pcm,snd_rawmidi
video 45056 2 thinkpad_acpi,i915
lpc_ich 24576 0
mei_me 40960 0
mei 94208 1 mei_me
soundcore 16384 1 snd
shpchp 36864 0
mac_hid 16384 0
sch_fq_codel 20480 6
parport_pc 32768 0
ppdev 20480 0
lp 20480 0
parport 49152 3 parport_pc,lp,ppdev
ip_tables 28672 0
x_tables 40960 1 ip_tables
autofs4 40960 2
hid_generic 16384 0
r8169 86016 0
usbhid 53248 0
psmouse 151552 0
hid 114688 2 usbhid,hid_generic
sdhci_pci 32768 0
mii 16384 1 r8169
pata_acpi 16384 0
sdhci 49152 1 sdhci_pci
这里,实质上 lsmod
输出的内容都是 /proc/modules
里面的内容。