helloworld驱动程序
来源:互联网 发布:聚类算法优劣指标 编辑:程序博客网 时间:2024/06/06 04:59
=============以下为源程序============
#include <linux/init.h>
#include <linux/module.h>MODULE_LICENSE("Dual BSD/GPL");
static int hello_init(void)
{
printk("Hello, world\n");
return 0;
}
static void hello_exit(void)
{
printk("Goodbye, cruel world\n");
}
module_init(hello_init);
module_exit(hello_exit);
===========以下为Makefile==============
obj-m := helloworld.o
KERNELDIR ?= /root/linux-2.6.33
PWD := $(shell pwd)
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
clean:
make -C $(KERNELDIR) M=$(PWD) clean
rm -f Module.symvers
~
~
- helloworld驱动程序
- helloworld驱动程序
- helloworld驱动程序
- Linux设备驱动程序:HelloWorld
- HelloWorld版的驱动程序
- helloworld第一个驱动程序
- NT式驱动程序的helloworld
- 编写第一个HelloWorld驱动程序
- linux 驱动程序入门 helloworld.ko
- Linux设备驱动程序(1)【第一个驱动程序:HelloWorld】
- 【Linux设备驱动程序(第三版)】----HelloWorld
- linux3.0.4下编译helloworld内核驱动程序
- 2.最基础Linux设备驱动程序:HelloWorld
- 嵌入式Linux简单字符设备驱动程序---helloworld
- linux设备驱动程序学习笔记--helloworld
- 编写一个helloworld的驱动程序到内核
- Linux设备驱动程序(1)--简单的helloworld
- (一)为Android系统编写Linux内核驱动程序HelloWorld
- 时间日期格式
- 驱动模块中Makefile的自我理解
- xcode反汇编调试iOS模拟器程序
- POJ 1042 Gone Fishing
- 哈希码
- helloworld驱动程序
- 简约而不简单-软件测试自动化的魅力和力量
- 关系型数据库基础之:数据库设计(附加)
- 友元
- JAVA设计模式之工厂系列
- Windows消息机制
- 初探 RequireJS
- MFC消息大全
- 优化JVM参数提高eclipse运行速度