作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2008, Vol. 34 ›› Issue (10): 89-91. doi: 10.3969/j.issn.1000-3428.2008.10.032

• 软件技术与数据库 • 上一篇    下一篇

可重用Linux设备驱动程序框架

袁丽慧1,彭 磊2   

  1. (1. 西华师范大学数学与信息学院,南充 637002;2. 电子科技大学计算机学院,成都 610054)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-05-20 发布日期:2008-05-20

Reusable Framework of Linux Device Drivers

YUAN Li-hui1, PENG Lei2   

  1. (1. School of Mathematics and Information, China West Normal University, Nanchong 637002; 2. School of Computer Science and Engineering, University of Electronic Science and Technology of China, Chengdu 610054)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-05-20 Published:2008-05-20

摘要: Linux设备驱动程序的开发工作涉及到相当多的系统内核细节,对开发人员的要求很高。由于缺乏必要的可重用性,一个新设备的驱动程序的开发速度也很缓慢。为了简化其开发流程和提高已有代码的可重用性,该文将C++语言引入到Linux内核环境,以面向对象的方法设计了一个驱动程序开发框架。该框架封装了Linux内核对设备驱动程序的生命周期管理和行为管理,可以在保证设备驱动程序质量的基础上,降低开发难度,加快开发速度,规范开发流程。

关键词: Linux系统, 设备驱动程序, 框架, C++语言

Abstract: To develop device drivers for Linux is a skillful work as it is twisted too much with kernel details. On the other hand, due to lack of the necessary reusability, a new driver has to be produced slowly. To simplify the development process and improve the reusability, this paper contributes one object-oriented framework for device drivers by introducing C++ language into Linux kernel. The framework has encapsulated the management of driver’s life and behaviors. With aids of the framework, Linux device drivers with good quality can be developed easily, quickly, and normatively.

Key words: Linux system, device driver, framework, C++ language

中图分类号: