Re: Mapping physical memory into Application space



WinCE supports the idea of mapping physical buffers to App space. That is
what MmMapIoSpace does.

What you want is a virtual address of a physical buffer in your application
and you have the physical address of that buffer. So you can just call
MmMapIoSpace(physical_addr, length, FALSE) in your application and there is
no need for IOCtl. At most, you can get physical_addr with IOCtl and call
MmMapIoSpace in your application. What is the point to call MmMapIoSpace
and MapPtrProcess in the driver while you want to use the pointer in
application? It may work if you do it right though.

--
Zhongwei Wang
Applied Data Systems
www.applieddata.net
Application - Ready embedded systems
Microsoft Windows Embedded Partner
Gold Level Member


"viddec" <viddec@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5AF141B6-8FD9-4E85-BE3A-280EA42B79BB@xxxxxxxxxxxxxxxx
>
> So, WinCe does not support the idea of mapping physical buffers to App
> space.


.