(If your system is missing graphical libraries
needed to run make xconfig, try make menuconfig instead.)
Documentation??”The /usr/src/linux*/Documentation directory contains lots of
plain-text files describing different aspects of the kernel and related drivers.
After modules have been built, they are installed in the /lib/modules/ subdirectories. The name
of the directory is based on the release number of the kernel that the modules were compiled for.
Modules that are in that directory can then be loaded and unloaded as they are needed. Before
building modules for a new kernel, or more important, a current kernel, it may be wise to add your
initials to the kernel Makefile under the variable EXTRAVERSION at the top of the Makefile. This
installs your new modules under /lib/modules/kernel-version with the EXTRAVERSION
suffixed to the directory. If you completely wreck the module build, you haven??™t overwritten the
current modules you may be running. It also makes it easier to identify custom kernel modules
when debugging.
Listing Loaded Modules
To see which modules are currently loaded into the running kernel on your computer, use the
lsmod command. Here??™s an example:
# lsmod
Module Size Used by
snd_seq_oss 38912 0
snd_seq_midi_event 9344 1 snd_seq_oss
snd_seq 67728 4
snd_seq_oss,snd_seq_midi_event
160
Running the Show Part II
snd_seq_device 8328 2 snd_seq_oss,snd_seq
.
Pages:
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374