Tech Support > Microsoft Windows > Drivers > Building a chained MDL
Building a chained MDL
Posted by alex on June 6th, 2008


Hi,
I would like to make a DMA transfer to two non contiguous buffers in non
paged memory. As far as I understand I have to create a MDL chain to
represent the two buffers, but looking at IoAllocateMdl() documentation
for SecondaryBuffer parameter it always refers to an IRP. But I haven't
got any IRP, I'm building the MDL myself. Is it possible to build a
chained MDL without having an IRP? If the answer is yes which routines
should I use?

Bye
Alex

Posted by Doron Holan [MSFT] on June 6th, 2008


you build the chained MDL by hand by pointing the Mdl->Next field to the
next MDL in the chain. how you allocate the MDL and initialize it is up to
you as well

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"alex" <viszont_latasra_@nerdshack.com> wrote in message
news:dbfnh5-0611.ln1@gw-fi.esaote.com...

Posted by Maxim S. Shatskih on June 6th, 2008


Build 2 MDLs, then link them manually using ->Next field.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com



Similar Posts