Linux内核模块编程入门知识
针对2.6内核的Linux系统,需要你的机器上已经安装了kernel-devel这个包,也就是编译模块所必须的东西:内核的头文件和一些Makefile。 一,Hello World程序: [code:1:fbc83fc10a]/*file: hello.c*/ #ifndef __KERNEL__ #define __KERNEL__ #endif #ifndef MODULE #define MODULE #endif #include #inclu...