摘要:
将创建字符设备的三种方法记录一下,以便以后参考.1. 使用早期的register_chardev()方法#include<linux/kernel.h>#include<linux/module.h>#include<linux/fs.h>#include<asm/uaccess.h>int init_module(void);void cleanup_module(void);static int device_open(struct inode*, struct file*);static int device_release(struct 阅读全文
posted @ 2011-04-17 23:46
h13
阅读(4206)
评论(0)
推荐(0)

浙公网安备 33010602011771号