Linux内核学习

查看内核模块:
[root@ayong kernel]# pwd
/lib/modules/2.6.18-92.el5/kernel
[root@ayong kernel]# ls
arch  crypto  drivers  fs  lib  net  sound

查看已加载模块:
[root@ayong ~]# lsmod
Module                  Size  Used by
softdog                 9941  0
ipv6                  258273  22
xfrm_nalgo             13765  1 ipv6
crypto_api             11969  1 xfrm_nalgo

查看模块信息:
[root@ayong kernel]# modinfo drivers/scsi/scsi_transport_sas.ko

查看内核模块路径:
[root@ayong kernel]# modinfo -F filename softdog
/lib/modules/2.6.18-92.el5/kernel/drivers/char/watchdog/softdog.ko

手工安装模块:
[root@ayong kernel]# lsmod | grep softdog      
[root@ayong kernel]# insmod $(modinfo -F filename softdog)
[root@ayong kernel]# lsmod | grep softdog                
softdog                 9941  0

手工卸载模块:
 

你可能感兴趣的:(linux,职场,内核,休闲)