阅读:1722回复:2
求高手解释一段代码
baseVa = MmGetMdlVirtualAddress(pIrp->MdlAddress + pDevExt->ReadOffset);
//主要是下面的这一行代码的意思不知道,请问如何理解啊? if( status = pDevExt->pReadAdapter->DmaOperations->GetScatterGatherList(pDevExt->pReadAdapter, pDeviceObject, pIrp->MdlAddress, baseVa, pDevExt->ReadLength, ReadAdapterControl, pIrp, TRUE)// transfer to device from buffer != STATUS_SUCCESS) { KdPrint(("XXXXXXX.sys: StartDMARead - GetScatterGatherList failed\n")); pIrp->IoStatus.Status = status; pIrp->IoStatus.Information = 0; // Complete the request now IoCompleteRequest(pIrp, IO_NO_INCREMENT); return status; } else status = STATUS_PENDING; |
|
|
沙发#
发布于:2010-03-26 10:06
!!请高人指示
|
|
|
板凳#
发布于:2010-03-29 09:32
请高人指示
|
|
|