//mod_hello.c#include #include int init_module(void){ return 0;} void cleanup_module(void){ } root@KMU-UBUNTU:~/mod_hello# gcc -o hello mod_hello.cmod_hello.c:1:26: fatal error: linux/module.h: No such file or directorycompilation terminated. 원시적인 컴파일 방법 : 이미 있는 커널에 덧씌우는 방법 : (커널을 컴파일) mod_hello.c -> mod_hello..ko : 리눅스에 커널 소스가 있음 (usr/src/linux-headers-3.11.0-15-generic/)