hello_内核模块示例.tar.gz 解压
make 出现以下报错
make: *** /lib/modules/2.6.24-26-server/build: No such file or directory. Stop.
解法:
dpkg -i pool/main/l/linux/linux-headers-2.6.24-26_2.6.24-26.64_all.deb
加载,查看,移除ko
#insmod hello.ko
# tail -f /var/log/messages
Dec 21 12:34:00 ubuntu kernel: [75107.510354] hello: module license 'GPL' taints kernel.
# lsmod | grep hello
hello 2432 0
# rmmod hello
# lsmod | grep hello