摘要
Windows操作系统上,应用程序不能直接访问设备,访问要通过内核中的设备驱动程序实现。当系统中存在多种被控设备时,可采取一个主驱动程序控制其它设备驱动程序的方式,实现对多个设备的统一、协调的控制。文章介绍了通过在内核中传递IO请求包(IRP)的方式,实现设备驱动程序之间的数据通讯的方法,该方法首先在内存中分配一个共享数据区,并将描述该共享区域的数据结构通过IRP在驱动程序间传递,实现在驱动程序间的数据通讯。
In the operating system of windows,the application can not directly access the devices,which can only be realized through the kernel device driver.When several accused devices are coexisting in this system,we can implement to control multiple devices consistently and coordinately by using a main device driver to monitor other processes.This paper introduces the approach of achieving the data communication among device drivers by passing IO Request Packets(IRP) in the kernel,which firstly allocates a shared region of data and describes the inter-transmission of the data structure,and most importantly,achieves the data communication among drivers.
出处
《四川理工学院学报(自然科学版)》
CAS
2010年第4期414-416,共3页
Journal of Sichuan University of Science & Engineering(Natural Science Edition)
基金
四川省教育厅项目(09ZB128)
自贡市科技局项目(2009017)