摘要:
hello.c#include <linux/module.h>#include <linux/init.h>static int __init hello_init(void){ printk(KERN_ALERT "Hello,world!\n"); return 0; }static void __exit helo_exit(void){ printk(KERN_ALERT "GoodBye,cruel world!\n");}module_init(hello_init);module_exit(hello_exit); 阅读全文