特牛生活网

linux kernel module - hello world_kernel module hello-CSDN博客

网友收藏
文章浏览阅读880次。编写设备驱动是学习kernel的门路之一, 迈入驱动编程的第一堂课可能就是编写内核模块。第一步,编写源文件hello.c,如下#include #include MODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){ printk(KERN_ALERT "hello,world1\n");_kernel module hello