摘要
在嵌入式产品开发中,驱动程序的编写占很大比例。在简要概括了设备驱动程序原理和一些重要相关知识的前提下,对3种常见的Linux设备驱动模型做了详细分析。旨在从层次结构的角度对Linux设备驱动程序的编写方法进行总结,从中发现Linux设备驱动程序的编写规律,从而解决设备驱动程序开发难且不易掌握的问题。在此用WTD实例表明,层次结构的思想可以满足常见的设备驱动编写需求。
The compiling of driver occupys a large proportion in embedded product development. The principle of the de- vice drivers and some important knowledge are described briefly in this paper. Three common models of Linux driver are ana- lyzed in detail. Linux device driver preparation methods are summarized from the view point of the hierarchy. The compiling rule of linux device driver was discovered from the summarization of the compiling methods. The problems hard to write device driver and master it were solved by the method. The WTD instance in the article shows that the idea of hierarchical structure can meet the demands of common device driver compiling.
出处
《现代电子技术》
2013年第4期5-8,共4页
Modern Electronics Technique