摘要: 后台驱动代码如下:比较昨天的,添加了读写指针位置移动操作#include#include#include#include /* COPY_TO_USER */#include#include #include #define DEV_NAME "rwtest"#define DEV_NUM 2#define DEV_MEM_SIZE 4096static int major=0;//static int MAX_BUF_LEN=1024;static char drv_buffer[2][1024];//static char drv_buf0[1024];//static 阅读全文
posted @ 2014-03-06 13:44 爱在夕阳下 阅读(237) 评论(0) 推荐(0) 编辑