Check driver status with cat /proc/modules
In this step, you will explore another way to view information about loaded kernel modules by examining the /proc/modules
file. The /proc
filesystem is a virtual filesystem that provides information about processes and other system information.
The /proc/modules
file contains similar information to the output of lsmod
, but in a slightly different format. We will use the cat
command to display the contents of this file.
Type the following command in your terminal and press Enter:
cat /proc/modules
You will see output similar to this:
snd_hda_codec_generic ... ... - Live 0xffffffff...
ledtrig_audio ... ... - Live 0xffffffff...
snd_hda_codec_hdmi ... ... - Live 0xffffffff...
snd_hda_intel ... ... - Live 0xffffffff...
snd_intel_dspcfg ... ... - Live 0xffffffff...
snd_hda_codec ... ... snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel, Live 0xffffffff...
snd_hda_core ... ... snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec, Live 0xffffffff...
snd_hwdep ... ... snd_hda_codec, Live 0xffffffff...
snd_pcm ... ... snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hwdep, Live 0xffffffff...
snd_seq_midi ... ... - Live 0xffffffff...
snd_seq_midi_event ... ... snd_seq_midi, Live 0xffffffff...
snd_rawmidi ... ... snd_seq_midi,snd_seq_midi_event, Live 0xffffffff...
snd_seq ... ... snd_seq_midi,snd_seq_midi_event, Live 0xffffffff...
snd_seq_device ... ... snd_seq_midi,snd_rawmidi,snd_seq, Live 0xffffffff...
snd_timer ... ... snd_pcm,snd_seq, Live 0xffffffff...
snd ... ... snd_hda_codec_generic,ledtrig_audio,snd_hda_codec_hdmi,snd_hda_intel,snd_intel_dspcfg,snd_hda_codec,snd_hda_core,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_seq_device,snd_timer, Live 0xffffffff...
soundcore ... ... snd, Live 0xffffffff...
...
The columns in /proc/modules
represent:
- Module name
- Size of the module
- Number of times the module is being used
- Whether the module is loaded (
Live
) or being unloaded (Loading
or Unloading
)
- Memory offset of the module (this is the
0xffffffff...
part)
- Dependent modules (similar to the "Used by" column in
lsmod
)
While lsmod
is generally the preferred command for viewing loaded modules, understanding that this information is also available in the /proc
filesystem is important for deeper system introspection.
Click Continue to move on.