计算机工程 ›› 2006, Vol. 32 ›› Issue (19): 283-284.doi: 10.3969/j.issn.1000-3428.2006.19.102

• 开发研究与设计技术 • 上一篇    

Linux下USB设备驱动研究与开发

杨 伟,刘 强,顾 新   

  1. (西安电子科技大学计算机学院,西安 710071)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-10-05 发布日期:2006-10-05

Research and Design of USB Device Driver in Linux

YANG Wei, LIU Qiang, GU Xin   

  1. (Department of Computer, Xidian University, Xi`an 710071)
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-10-05 Published:2006-10-05

摘要: 开发USB(Universal Serial Bus)设备驱动是一项比较繁琐的工作。Linux中的USB核心子系统提供了大量的API以及相关的支持机制,保证了USB设备的即插即用,简化了驱动的编写。结合具体开发实例,介绍了USB的相关概念,分析Linux中USB核心子系统的框架构成以及重要的数据结构,剖析Linux内核对USB规范的支持,描述了驱动开发的一般方法和技巧。

关键词: USB, Linux, 设备驱动程序

Abstract: Programming for USB device drivers is a complex job. The Linux USB core subsystem has offered a large amount of relevant mechanisms and application programming interface(APIs) to support the USB device works Plug-and-Play(PNP) and relax the job developing of USB device drivers. With a representative example, the paper introduces some related concepts of USB, analyses the pattern, data structures related to Linux USB subsystem. It emphasizes on how Linux support the protocol of USB and describes the general method and skill in development of Linux USB drivers.

Key words: Universal serial bus(USB), Linux, Device driver program