文件名称:Linux-driver-development6
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [PDF]
- 上传时间:
- 2012-11-26
- 文件大小:
- 437kb
- 下载次数:
- 0次
- 提 供 者:
- 华***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
作者:华清远见嵌入式学院。《Linux设备驱动开发详解》(08&09年度畅销榜TOP50)第6章、字符设备驱动。在Linux设备驱动中,字符设备驱动较为基础。本章主要讲解Linux字符设备驱动程序的结构及其主要组成部分的编程方法。6.1节讲解了Linux字符设备驱动的关键数据结构cdev及file_operations结构体的操作方法,并分析了Linux字符设备的整体结构,给出了简单的设计模板。6.2节讲解了本章及后续各章所基于的globalmem虚拟字符设备,第6~9章都将基于该虚拟设备实例进行字符设备驱动及并发控制等知识的讲解。6.3节依据6.1节的知识讲解globalmem设备的驱动编写方法,对读写函数、seek()函数和I/O控制函数等进行了重点分析。该节的最后改造globalmem的驱动程序以利用文件私有数据。6.4节给出了6.3节的globalmem设备驱动在用户空间的验证。-Author: HuaQing vision embedded institute. The Linux device driver development "(08 and 09 sep TOP50) annual list of best-selling chapter 6, characters, device drivers. In Linux device driver, character device driver is the foundation. This chapter covers Linux characters of a device driver structure and main component of the programming method. Section 6.1 explained the key character device driver Linux data structure cdev and file_operations structure of the body, and analyses the operating methods Linux character the overall structure of the equipment are given, and the design of simple design template. Section 6.2 explained this chapter and subsequent chapters, based on globalmem virtual character device, chapter 6 ~ 9 will be based on the virtual device character device driver and examples such as the concurrent control knowledge s explanation. Section 6.3 basis of the knowledge of the section 6.1 of the equipment driver writers explain globalmem method of reading and writing lett
(系统自动生成,下载前可以参看下载内容)
下载文件列表
第6章、字符设备驱动.pdf