Chinaunix首页 | 论坛 | 博客
  • 博客访问: 333132
  • 博文数量: 45
  • 博客积分: 669
  • 博客等级: 上士
  • 技术积分: 675
  • 用 户 组: 普通用户
  • 注册时间: 2012-06-27 17:59
文章分类
文章存档

2015年(5)

2014年(6)

2013年(4)

2012年(30)

发布时间:2012-08-25 07:06:51

......【阅读全文】

阅读(910) | 评论(0) | 转发(1)

发布时间:2012-08-23 08:50:12

Select在Socket编程中还是比较重要的,可是对于初......【阅读全文】

阅读(869) | 评论(1) | 转发(0)

发布时间:2012-08-23 07:32:16

本实践实现对一段内存的的打开,关闭,读写的操作,并通过应用程序测试设备及驱动是否运行正常 test_drv.c  #include  #include  #include  #include  #include  #include.........【阅读全文】

阅读(1016) | 评论(0) | 转发(1)

发布时间:2012-08-22 17:21:45

在 linux 2.6内核中,使用 cdev结构体描述字符设备,cdev 的定义在 <linux/cdev.h> 中可找到,其定义如下:引用 struct cdev {struct kobject kobj;struct module *owner;const struct file_operations *ops;struct list_head list;dev_t dev;unsigned int count;};cdev 结构体中的 dev_t 成员.........【阅读全文】

阅读(1272) | 评论(0) | 转发(0)

发布时间:2012-08-22 09:21:56

内核中每个字符设备都对应一个 cdev 结构的变量,下面是它的定义:linux-2.6.22/include/linux/cdev.hstruct cdev {   struct kobject kobj;          // 每个 cdev 都是一个 kobject   struct module *owner;       // 指向实.........【阅读全文】

阅读(1844) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册