使用内核定时器的second字符设备驱动及测试代码
摘要:
驱动:#include #include #include #include #include #include #include //cdev#include //udev#include //schedule#include //copy_to_user#include //kmalloc()#define DEVICE_NAME "second_drv"static int second_major=0;/*主设备号*/struct class *second_class;/*second设备结构体*/static struct second_dev{ struct 阅读全文
posted @ 2013-09-05 13:43 熊猫酒仙是也 阅读(331) 评论(0) 推荐(0) 编辑