linux kernel and mod

linux designed as a single core, but the use of micro-kernel design 

kernel associated two folders 
/ proc 
/ SYS 


setting operating parameters of the kernel method 
echo of VALUE> / proc / sys / the To / somefile 
SYSCTRL of VALUE = -w kernel.HOSTNAME 


modify the contents of the file / proc folder and can be modified to take effect immediately, but lost to restart 
modify /etc/sysctrl.conf files can be stored permanently, but can not take effect immediately 
correct approach is to modify the file after execution sysctrl -p command to reread the kernel profile 



sysctrl -a Show all parameters and their values kernel 


kernel module management 
modprobe MOD_NAME loading a module 
modprobe -r MOD_NAME unload a module 
modinfo MOD_NAME viewing module specific information 
insmod / PATH / tO / MODULE_FILE loading module 
rmmod MOD_NAME unloading module 
depmod / PATH / TO / MODULES_DIR view the module dependencies

  

Guess you like

Origin www.cnblogs.com/lcxiao/p/11361057.html