Cleanup after IoBuildAsynchronousFsdRequest

Discussion in 'Windows Vista Drivers' started by David, Dec 5, 2003.

  1. David

    David Guest

    Oney's books has a loop to clean up the MDLs then the IoFreeIrp ... The MS
    samples have something like:
    if (Irp->MdlAddress != NULL) {
    MmUnlockPages(Irp->MdlAddress);
    IoFreeMdl(Irp->MdlAddress);
    Irp->MdlAddress = NULL;
    }

    So this generates two questions:

    1) Is MmUnlockPages required in the completion routine of a IRP created with
    IoBuildAsynchronousFsdRequest?

    2) Does IoFreeMdl take care of freeing all MDL's in the chain?

    TIA!!
     
    David, Dec 5, 2003
    #1
    1. Advertisements

  2. David

    David Guest

    Looking at Q326315 gives the answer:

    No.

    <snip>
     
    David, Dec 5, 2003
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.