chapter 8.7: 完成I/O请求
来源:互联网 发布:有人收购淘宝店铺干嘛 编辑:程序博客网 时间:2024/06/11 02:38
当驱动完成了I/O请求,设置status,传输的number of bytes,发起请求线程的priority boost
下表是WDF驱动可以调用的完成方法(UMDF的接口为IWDFIoRequest)
priority boost 是用来增加等待I/O请求完成或接受请求的结果的线程的运行优先级。若不指定priority boost,framework根据设备类型使用默认值。
先cleanup,再complete,最后删除request对象。
不要在占有锁时调用任何I/O完成方法,容易死锁。
下表是WDF驱动可以调用的完成方法(UMDF的接口为IWDFIoRequest)
Action
UMDF method
KMDF method
Completes an I/O request with status and the default priority boost.
Complete
WdfRequestComplete
Completes an I/O request with status, the number of bytes transferred, and the default priority boost.
CompleteWithInformation
WdfRequestCompleteWithInformation
Completes an I/O request with status, number of bytes transferred, and priority boost.
None
WdfRequestCompleteWithPriorityBoost
create,cleanup,close可以用第一个,而读,写和大多数IOCTL请求(有data)可以用后两个。priority boost 是用来增加等待I/O请求完成或接受请求的结果的线程的运行优先级。若不指定priority boost,framework根据设备类型使用默认值。
先cleanup,再complete,最后删除request对象。
不要在占有锁时调用任何I/O完成方法,容易死锁。
- chapter 8.7: 完成I/O请求
- 完成I/O请求
- chapter 8.4: I/O 请求对象
- chapter 9.6:格式化I/O请求
- 设备I/O之“接收I/O请求完成通知”
- 《Windows via C/C++》学习笔记 (七) 设备I/O之“I/O请求完成”
- I/O 完成端口
- I/O完成端口
- I/O完成端口
- I/O完成端口
- I/O完成端口
- I/O完成端口
- I/O完成端口
- chapter 3.4 I/O model
- Chapter 3 文件I/O
- Chapter 14 高级I/O
- chapter 8.5: I/O Queues
- chapter 9.1: I/O targets
- c++队列 queue
- unity3d 性能优化之prafab
- Visual Studio 2010——第一个Visual C++.NET程序
- 多屏互动新媒体产品技术的调研报告
- 设计模式之七 --- 观察者模式(Observer)
- chapter 8.7: 完成I/O请求
- 本机能访问,但是局域网其他机器不能访问网站网页
- hdu4542 搜索+打表
- kernel/wait.c
- chapter 8.8: canceled and suspended requests
- 【0】4.1 这不是愚人节
- iOS Gesture Recognizer 简单使用
- chapter 8.9:Adaptive Time-outs in UMDF
- chapter 8.10:self-managed I/O