WINDOWS 驱动 PAGED_CODE

来源:互联网 发布:i need a doctor 知乎 编辑:程序博客网 时间:2024/06/03 05:48
http://technet.microsoft.com/zh-cn/library/ff558773%28v=vs.85%29.aspx

  1. The PAGED_CODE macro ensures that the calling thread is running at an IRQL that is low enough to permit paging.
  2. Syntax
  3. C++


  4. VOID PAGED_CODE(void);

  5. Parameters

  6. This macro has no parameters.
  7. Return value

  8. None
  9. Remarks

  10. If the IRQL > APC_LEVEL, the PAGED_CODE macro causes the system to ASSERT.
  11. IRQ级别大于APC_LEVEL时,导致系统挂起,对IRQL的分析请见“IRQL APC_LEVEL and APC  ”
    (http://blog.163.com/hao_dsliu/blog/static/131578908201373171111173/)

  12. A call to this macro should be made at the beginning of every driver routine that either contains pageable code or accesses pageable code.
  13. 在函数开头使用,即在变量定义之后使用

  14. /* Video Miniport Driver entry point */
    ULONG DriverEntry(IN PVOID Context1, IN PVOID Context2)
    {
        PAGED_CODE();

    }

  15. The PAGED_CODE macro checks the IRQL only at the point at which the driver code executes the macro. If the code subsequently raises the IRQL, the macro will not detect this change. Driver developers should use Static Driver Verifier and Driver Verifier to detect when the IRQL is raised improperly during the execution of a driver routine.

  16. The PAGED_CODE macro works only in checked builds.
  17. 只在check版本有效

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(469) | 评论(0) | 转发(0) |
0

上一篇:vim 按键映射

下一篇:windows驱动获取系统版本信息 PsGetVersion RtlGetVersion

相关热门文章
  • LNK1123: 转换到 COFF 期间失...
  • WIN7访问共享:0x80070035 找不...
  • Delphi 2010下载+完美破解...
  • vs2010调试C++程序时提示 无...
  • VISIO,不规则封闭图形填充方...
  • linux dhcp peizhi roc
  • 关于Unix文件的软链接
  • 求教这个命令什么意思,我是新...
  • sed -e "/grep/d" 是什么意思...
  • 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
原创粉丝点击