把代码编译成一个内核模块加载到内核中。
写内核模块时参考了:http://tldp.org/LDP/lkmpg/2.6/html/
但是写完后,编译,发现报“linux/config.h: No such file or directory”
网上搜了下,原因是2.6.19之后的内核没有了config.h文件,因此直接把对应的include注释掉即可。
把代码编译成一个内核模块加载到内核中。
写内核模块时参考了:http://tldp.org/LDP/lkmpg/2.6/html/
但是写完后,编译,发现报“linux/config.h: No such file or directory”
网上搜了下,原因是2.6.19之后的内核没有了config.h文件,因此直接把对应的include注释掉即可。