idaxsy
驱动大牛
驱动大牛
  • 注册日期2004-12-09
  • 最后登录2006-03-17
  • 粉丝0
  • 关注0
  • 积分386分
  • 威望54点
  • 贡献值0点
  • 好评度8点
  • 原创分0分
  • 专家分0分
阅读:1394回复:2

关于FsRtlEnterFileSystem

楼主#
更多 发布于:2005-05-24 17:48
看ddk的解释,是阻止普通APC的执行。
我想是出于同步的需要吧?ddk的解释好深奥! :(

请大虾给解释一下这个函数的作用?
[b]万水千山总是情,回个帖子行不行?[/b]
idaxsy
驱动大牛
驱动大牛
  • 注册日期2004-12-09
  • 最后登录2006-03-17
  • 粉丝0
  • 关注0
  • 积分386分
  • 威望54点
  • 贡献值0点
  • 好评度8点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2005-05-25 09:44
Every file system driver entry point routine must call FsRtlEnterFileSystem immediately before performing a file I/O request and FsRtlExitFileSystem immediately afterward. This ensures that the routine cannot be suspended while running and thus block other file I/O requests.

这是我从ddk拷贝的说明。言简意赅,深入深出。
[b]万水千山总是情,回个帖子行不行?[/b]
lydzyw
驱动牛犊
驱动牛犊
  • 注册日期2004-06-28
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分257分
  • 威望40点
  • 贡献值0点
  • 好评度28点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2005-05-26 08:51
根据《Windows NT File System Internals》:
The FsRtlEnterFileSystemf) macro is simply defined to KeEnterCriticalRegion(),
while the FsRtlExitFileSystem()
macro is defined to KeLeaveCriticalRegion ( ) .
所以肯定是用做同步,再往深处追究我也不理解。
游客

返回顶部