阅读:1370回复:4
把上层传来的MDL换掉我想在MDL资料里面偷塞东西。 可以把上层传来的MDL换掉吗,或是调整? 若杀掉原来的Irp->MdlAddress,换上新的 ,会不会出什么差错 |
|
沙发#
发布于:2004-07-22 08:43
可能会出错],应该在完成例程里替换回来 |
|
|
板凳#
发布于:2004-07-22 09:06
成功完成该IRP,然后自己创建新的IRP往下发(当然就带自己新建的MDL拉)
|
|
地板#
发布于:2004-07-24 19:41
if you know what this IRP is and who in IO_STACK_LOCATION has refered to this MDL, you can change it safely.
E.g., you must notice: not only Irp->MdlAddress referes to a MDL address, some members of IO_STACK_LOCATION refer to this address too - at least, this is used by the storage drivers very commonly. |
|
|
地下室#
发布于:2004-07-26 23:59
Irp->MdlAddress 只向用户输入/出缓冲,换掉了,有没有问题要看用户程序缓冲,以及黄从内容
|
|
|