亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区
Chinaunix
標(biāo)題:
編寫kernel模塊的標(biāo)準(zhǔn)格式
[打印本頁]
作者:
junglegq
時間:
2007-08-23 15:02
標(biāo)題:
編寫kernel模塊的標(biāo)準(zhǔn)格式
#cat Makefile
obj-m := hello.o
CFLAGS += -g -Wall -O2
default:
$(MAKE) -C /lib/modules/`uname -r`/build M=`pwd` modules
clean:
rm -f *.o *.ko *.mod.* *~ Module.symvers
#cat hello.c
#include
#include
#define DPRINTK(fmt, args...) printk(KERN_ALERT fmt, ##args)
MODULE_AUTHOR("guqing");
MODULE_LICENSE("GPL");
static int test_me=123;
EXPORT_SYMBOL(test_me);
static int __init hello_init(void)
{
DPRINTK("hello, world\n");
return 0;
}
static void __exit hello_exit(void)
{
DPRINTK("Goodbye, world\n");
}
module_init(hello_init);
module_exit(hello_exit);
本文來自ChinaUnix博客,如果查看原文請點:
http://blog.chinaunix.net/u/7356/showart_366050.html
歡迎光臨 Chinaunix (http://www.72891.cn/)
Powered by Discuz! X3.2