Linux Device Driver1 -- "hello world"
1. hello.c
#include
#include
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_ALER
转载
2014-02-14 13:46:50 ·
697 阅读 ·
0 评论