mod and it's makefile
来源:互联网 发布:java字符串转换10进制 编辑:程序博客网 时间:2024/05/18 02:29
#include <linux/init.h>
#include <linux/module.h>
MODULE_LICENSE("Dual BSD/GPL");
static int hello_init(void)
{
printk(KERN_INFO " Hello World enter\n");
return 0;
}
static void hello_exit(void)
{
printk(KERN_INFO " Hello World exit\n ");
}
module_init(hello_init);
module_exit(hello_exit);
MODULE_AUTHOR("Song Baohua");
MODULE_DESCRIPTION("A simple Hello World Module");
MODULE_ALIAS("a simplest module");
# Makefile2.6
ifneq ($(KERNELRELEASE),)
#kbuild syntax. dependency relationshsip of files and target modules are listed here.
obj-m := hello.o
else
PWD := $(shell pwd)
KDIR := /lib/modules/$(shell uname -r)/build
all:
$(MAKE) -C $(KDIR) M=$(PWD) modules
clean:
rm -rf .*.cmd *.o *.mod.c *.ko .tmp_versions
endif
引用http://blog.csdn.net/cailang06/article/details/6458609上对makefile的解释
- mod and it's makefile
- ICMP and it’s ApplicationsICMP and it’s Applications
- ICMP and it’s Applications
- SNMP and it's Applications
- SMTP and it’s Applications
- Linq and it's convention
- It's swings and roundabouts
- Makefile and Paul's Rules of Makefiles
- Avkon2.mif Icons and it's id
- ASP.net and it's Programming Models
- Symmetric NAT and It’s Problems
- Let's go, Just do it, and enjoy it
- Java Details: mod and %
- A Sample Of HQL And It's Application
- hausdorff distance and it's application to tile images classification
- What’s The Memristor And Where It Comes From
- Lanczos Algorithm and it's Parallelization Stragegy翻译
- what’s a virtual destructor and when is it needed?
- jsp url 传递中文的情况。
- js将页面table数据保存为excel!(经测试可用)
- Android手机安全业界进军路线图
- JAVA获取当前日期
- [Oracle]利用Job和Procedure进行项目自动编号
- mod and it's makefile
- 任意n个数中m个之和最大值函数(动态规划)
- ios中的delegate
- StageFright学习笔记(2)
- java比较两个日期大小
- 年、周、日期计算
- 游戏的本质[转自网易]
- 2011/08/08
- 眼高于顶、老不踏实!