#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE("Dual BSD/GPL");
static int hello_init(void)
{
printk(KERN_ALERT "hello, world!\n");
return 0;
}
static void hello_exit(void)
{
printk(KERN_ALERT "Goodbye, kernel world!\n");
}
module_init(hello_init);
module_exit(hello_exit);
内核驱动hello world模块
最新推荐文章于 2022-01-29 17:00:27 发布