Linux Module

Linux module type
1. Kernel module
2. Initr module
3. Other module

Kernel module
check: lsmod
uninstall: rmmod <module name>
check feature: modinfo <module name>
check configuration: /boot/config....

Initr module
check process:
1. gunzip < /boot/initr...img > /tmp/a.img
2. mkdir /bbb
3. cd /bbb
4. cpio -idm < /tmp/a.img
5. ls /bbb/lib

Other module
RHEL 5 --> /etc/modprobe.conf
RHEL 6 --> 
a. /etc/udev/rules.d
b. /etc/modprobe.d

udev feature
1. keep monitor the /sys folder (contain device information);
2. If new device generate in /sys folder, udev create device file (b/c) in /dev folder;
3. Following the rules in /etc/udev/rules.d to load driver

Comments

Popular posts from this blog

Nginx Proxy & Load Balance & LNMP

Linux RHCE Preparation

Snort+barnyard2+Snorby CentOS 6.5_64 Installation