码迷,mamicode.com
首页 > 其他好文 > 详细

I/O Completions port

时间:2016-04-27 22:42:18      阅读:250      评论:0      收藏:0      [点我收藏+]

标签:

http://blogs.technet.com/b/winserverperformance/archive/2008/06/26/designing-applications-for-high-performance-part-iii.aspx

While in theory this is easy to do, by just calling KeDelayExecutionThread in the write handler, the system is very likely to have problems if you do this.  What is the purpose of this delay?  Could you take the data, and hold it while indicating that the data was written, then have a worker thread do the write in 60 seconds?

 You can control the pending of one file, by catching the IRP_MJ_CREATE you can detect what file it is.  You add a context to the file and then in the write calls, you can check for the context and issue the KeDelayExecutionThread.   There are no samples for something like this, as I said it is a pretty weird requirement, you should be able to use one of the minifilter samples from the WDK as a starting point.

In the preoperation callback for the write to the file you have identified.

 

Yes the mini-filter will see all operations of all processes.  Take the minispy WDK sample, build and install it.  The sample gives you a log of operations.

I/O Completions port

标签:

原文地址:http://www.cnblogs.com/WCFGROUP/p/5440513.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!