标签:linux驱动源码
字符驱动
https://github.com/derekmolloy/exploringBB/blob/master/extras/kernel/ebbchar/ebbchar.c
可惜的是函数不完整,只有几个
块设备驱动
http://blog.csdn.net/fulinus/article/details/8637957
网络设备驱动
http://blog.chinaunix.net/uid-25885064-id-3077098.html
Makefile
ifneq ($(KERNELRELEASE),) obj-m := hello.o else KDIR := /lib/modules/$(shell uname -r)/build all: make -C $(KDIR) M=$(PWD) modules clean: rm -f *.ko *.o *.mod.o *.mod.c *.symvers endif
标签:linux驱动源码
原文地址:http://12088212.blog.51cto.com/12078212/1867317