pbxiaoliang
驱动牛犊
驱动牛犊
  • 注册日期2007-07-24
  • 最后登录2016-01-09
  • 粉丝1
  • 关注0
  • 积分60分
  • 威望19点
  • 贡献值0点
  • 好评度18点
  • 原创分0分
  • 专家分0分
阅读:1380回复:3

内存问题

楼主#
更多 发布于:2007-08-13 22:19
  MmGetSystemAddressForMdlSafe(Irp->MdlAddress, NormalPagePriority);
这个函数的功能我知道,第一个参数的意义我也知道,请问一下第二个参数是什么意思,小弟由于实际需要才看驱动开发,以前没搞过这方面的工作,希望各位不吝赐教,还有不知哪位大虾能推荐下关于这些函数的详细介绍文档,我在DDK里没找到,谢谢
seaquester
驱动大牛
驱动大牛
  • 注册日期2002-05-22
  • 最后登录2016-06-16
  • 粉丝0
  • 关注0
  • 积分500分
  • 威望115点
  • 贡献值0点
  • 好评度107点
  • 原创分0分
  • 专家分52分
沙发#
发布于:2007-08-14 11:11
DDK 的帮助文档里面都有的:

Specifies an MM_PAGE_PRIORITY value that indicates the importance of success under low available PTE conditions. Possible values include LowPagePriority, NormalPagePriority, and HighPagePriority.

LowPagePriority indicates that the mapping request can fail if the system is fairly low on resources. An example of this situation is a noncritical network connection where the driver can handle the mapping failure.

NormalPagePriority indicates that the mapping request can fail if the system is very low on resources. An example of this situation is a noncritical local file system request.

HighPagePriority indicates that the mapping request must not fail unless the system is completely out of resources. An example of this situation is the paging file path in a driver.
八风舞遥翩,九野弄清音。 鸣高常向月,善舞不迎人。
pbxiaoliang
驱动牛犊
驱动牛犊
  • 注册日期2007-07-24
  • 最后登录2016-01-09
  • 粉丝1
  • 关注0
  • 积分60分
  • 威望19点
  • 贡献值0点
  • 好评度18点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2007-08-14 15:07
明白了,谢谢您
pbxiaoliang
驱动牛犊
驱动牛犊
  • 注册日期2007-07-24
  • 最后登录2016-01-09
  • 粉丝1
  • 关注0
  • 积分60分
  • 威望19点
  • 贡献值0点
  • 好评度18点
  • 原创分0分
  • 专家分0分
地板#
发布于:2007-08-14 15:24
请教下,我想在passthru里获得发送的数据包内容把它传给用户程序,应该把IRP_MJ_READ的实现部分写在哪里呢?是写在miniport.c里吗还是写在passthru.c里
游客

返回顶部