Hi,
I’ve finally understood the difference between ReadFile() and
DeviceIoControl with
IOCTL_CDROM_RAW_READ while reading raw sectors from CD/DVD disks.
In later case we make DMA transfer instead of using CPU…
that’s clear…, but there’s another question, how to get an address
of an output buffer for DeviceIoControl,
DDK documentaion: “…output buffer described by the MDL at Irp->MdlAddress”
Can anybody explain me how to get this Irp struct?
I’m trying to get a valid physical address from “user space”
in order to make DMA transfer, is that correct way??
char *virt_address = (char*)malloc(…)
PHYSICAL_ADDRESS phys_address;
phys_address = MmGetPhysicalAddress(virt_address);
???
valery.
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com