摘要
本文主要介绍基于WDM模型的Ramdisk驱动程序的开发。Ramdisk程序的主要功能是在内存中分配指定大小的存储区域,并通过建立符号连接和格式化为系统提供一个虚拟的高速硬盘,以满足数据高速存取的需要。程序采用微软提供的Windows Driver Development Kit(DDK)作为开发工具,并以WDM驱动程序分层结构进行设计和开发的。本文介绍了驱动程序的具体实现,包括驱动入口点、创建和删除设备、IRP处理、即插即用、电源管理,以及FAT文件系统结构在驱动程序中的实现的方法。该程序在Windows XP环境下调试通过,基本能实现内存管理功能。
关键词:设备驱动程序,DDK,IRP,FAT
ABSTRACT
This paper describes the Ramdisk’s driver development based on WDM model. Its main function is in memory of the size distribution of the designated storage area. And through the establishment of a symbolic link to the system and the format for a virtual high-speed hard disks, to meet the high-speed data access needs. The procedures’s design and development used “Windows Driver Development Kit(DDK)” for develop tool,and based on WDM’s driver hierarchical structure. In this paper gives the driver a concrete realization, including the entrance drive, create and remove equipment IRP, a plug-and-play, power management, and the FAT file system driver structure in the method. The procedure in Windows XP through debugging environment, to achieve basic memory management functions.