RE: No right way to share PCI device memory with user mod e?

xxxxx@diebold.com said:

There is no good way of sharing memory between a driver and a user
mode application. Thats why you haven't found any direct answers. NT
was designed to isolate the hardware from user tasks, so sharing
memory is contrary to NT's design.

Sharing memory between device and application is sorta contrary to
NT's design, but Gary Little has already presented good way to do it.
Use MmMapLockedPages. I can vouch for the technique, as I use it as well.

It is a perfectly reasonable thing to want to do, it's irritating
that Windows 2000/Windows NT make it so difficult. The real trick
is figuring out how to build an MDL.

MmMapLockedPages is probably also a reasonable way to direct map
hardware memory. This is how AGP drivers (or at least the M$ example
AGP driver) works.

Steve Williams "The woods are lovely, dark and deep.
steve at icarus.com But I have promises to keep,
steve at picturel.com and lines to code before I sleep,
http://www.picturel.com And lines to code before I sleep."


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