amei
驱动牛犊
驱动牛犊
  • 注册日期2002-03-21
  • 最后登录2006-11-10
  • 粉丝0
  • 关注0
  • 积分30分
  • 威望3点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分0分
阅读:1856回复:3

ddk中portio例子中不明白的地方,请教(2)

楼主#
更多 发布于:2003-03-24 21:41
genport.c文件,在GpdAddDevice例程中,用 IoCreateDevice创建的设备对象deviceObject,在该例程的结尾处有两条语句不明白:
1。deviceObject->Flags |=  DO_POWER_PAGABLE;
2。deviceObject->Flags &= ~DO_DEVICE_INITIALIZING;
我查看了ntddk.h知道:
#define DO_POWER_PAGABLE   0x00002000    
#define DO_DEVICE_INITIALIZING  0x00000080
我的问题是:
1。deviceObject->Flags 在GpdAddDevice例程中的默认值是多少
2。deviceObject->Flags |=  DO_POWER_PAGABLE该语句的作用是什么?
我查看DDK文挡(1.2.2 Setting Device Object Flags for Power Management)说:On Windows 2000, drivers of devices that are in the paging path must not set the DO_POWER_PAGABLE flag.(处于分页路径的驱动程序不能设置此位)
隔了一段又有Windows 2000 drivers that can be paged must set the DO_POWER_PAGABLE flag. (可以分页的驱动程序必须设置此段),困惑
 :(
游客

返回顶部