您的位置:首页 > 其它

I/O Completions port

2016-04-27 21:43 323 查看
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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: