+ -
当前位置:首页 → 问答吧 → 有关模块编程的问题

有关模块编程的问题

时间:2003-06-03

来源:互联网

有人能说说模块编程中make文件怎么写,怎么用吗?以helloworld为例:
#include <linux/kernel.h>
#include <linux/module.h>

#if CONFIG_MODVERSIONS==1
#define MODVERSIONS
#include <linux/modversions.h>
#endif

int init_module()
{
printk("Hello, world - this is the kernel speaking\n");

return 0;
}


void cleanup_module()
{
printk("Short is the life of a kernel module\n");
}

作者: alittlekid   发布时间: 2003-06-03

somebody help me!!!

作者: alittlekid   发布时间: 2003-06-03