[시스템프로그래밍]4장. [모듈프로그래밍]Hello_Module
1. 2.6커널용 Hello_Module 작성 #include #include #include // init routine int __init init_hello(void) { printk(KERN_ALERT "[Module Message] Hello, Module.\n"); return 0; } // finish routine void __exit exit_hello(void) { printk(KERN_ALERT "[Module Message] Do you realy want to break up with me?\n"); } module_init(init_hello); module_exit(exit_hello); MODULE_LICENSE("GPL"); 2. 2.6 모듈 빌드용 Make 파일 obj-m..
2012.11.21