¡No te pierdas nuestro canal en Youtube!

Nuestras otras creaciones:
La-biblioteca.com | Mundofriki.es

Linux Kernel Module – fundamentals  Linux Kernel Module – fundamentals

Valoración de éste post
4.62 / 5 de 1725 votos

Mensajes: 947

Puntos totales:



Visita Exaforo.com

Linux enables the Kernel to be configured at run time, to enable or disable distinctive capabilities as you see healthy. This manner you don’t should collect a monolithic kernel, and might save some memory usage. Some modules you’ll handiest need for a short time, others you’ll need the entire time. That you can configure your Linux machine to load kernel modules on start-up so you don’t ought to be aware to try this when (if) you reboot.

The Linux Hardware gadgets has more suggestions about modules and kernel configuration options.

Module commands

There are just a few instructions that permit you to manipulate the kernel. Every is right now described beneath, for greater suggestions say `man [command]`.

• depmod – address dependency descriptions for loadable kernel modules.
• insmod – installation loadable kernel module.
• lsmod – checklist loaded modules.
• modinfo – monitor information a couple of kernel module.
• modprobe – excessive degree handling of loadable modules.
• rmmod – dump loadable modules.

The utilization of the commands is tested under, it's left as a recreation to the reader to totally take note the instructions.

The usage of Module commands

Beneath the distinct kernel module commands are confirmed
# demonstrate the module dependencies. depmod -n # deploy some module insmod --autoclean [modnam] # This lists all presently loaded modules, lsmod takes no advantageous parameters lsmod # reveal assistance about module eepro100 modinfo --writer --description --parameters eepro100 # eliminating a module (do not use the example) rmmod --all --stacks ip_tables

Module Configuration information

The kernel modules can use two distinct methods of automated loading. The primary formulation (modules.conf) is my favorite components, however which you could do as you please.

• modules.conf – This formula load the modules earlier than the relaxation of the capabilities, I feel earlier than your laptop chooses which runlevel to make use of

• rc.native – using this formula hundreds the modules in spite of everything different functions are began
using ‘modules.conf‘ will require you to assert `man 5 modules.conf`. The usage of ‘rc.local‘ requires you to vicinity the essential commands (see above) in the appropriate order.

pattern modules.conf # modules.conf - configuration file for loading kernel modules # Create a module alias parport_lowlevel to parport_pc alias parport_lowlevel parport_pc # Alias eth0 to my eepro100 (Intel professional one hundred) alias eth0 eepro100 # Execute /sbin/modprobe ip_conntrack_ftp after loading ip_tables publish-install ip_tables /sbin/modprobe ip_conntrack_ftp # Execute /sbin/modprobe ip_nat_ftp after loading ip_tables publish-install ip_tables /sbin/modprobe ip_nat_ftp sample rc.local #!/bin/sh # # This script could be achieved *after* the entire other init scripts. # You can put your personal initialization stuff in right here if you do not # wish to do the entire Sys V fashion init stuff. /sbin/insmod ip_tables /sbin/modprobe ip_conntrack_ftp /sbin/modprobe ip_nat_ftp


Be sure you see/recognize that modules are vital. They can be loaded by the use of ‘modules.conf‘ or ‘rc.local‘, however ‘modules.conf‘ load them first and ‘rc.local‘ hundreds them final. The usage of the numerous module instructions you could add, eliminate, record or get information about modules.

No te pierdas el tema anterior: Installation Munin (Monitoring) in RHEL, CentOS and Fedora

Salta al siguiente tema: Top 10 Linux distros for computing device / computer

Quizás también te interese:

Volver a Unix/Linux