摘要:
1. 字符设备驱动模块加载与卸载函数模板//设备结构体声明struct xxx_dev_t{ struct cdev cdev; …….}xxx_dev;//设备驱动模块加在函数static int __init xxx_init(void){ ……… cdev_init(&xxx_dev.cdev, &xxx_fops)... 阅读全文
posted @ 2009-11-24 21:16 放飞自我 阅读(397) 评论(0) 推荐(0) 编辑
摘要:
1. 字符设备驱动模块加载与卸载函数模板//设备结构体声明struct xxx_dev_t{ struct cdev cdev; …….}xxx_dev;//设备驱动模块加在函数static int __init xxx_init(void){ ……… cdev_init(&xxx_dev.cdev, &xxx_fops)... 阅读全文
posted @ 2009-11-24 21:16 放飞自我 阅读(397) 评论(0) 推荐(0) 编辑 |
||