Re: Mapping physical memory into Application space



Not sure I really understand what you want.
If you have a physical address, you new to call mmmapiospace to get a
virtual pointer to this buffer.
If you already have a virtual address to this buffer, mapped in another
process, then you can call MapPtrToProcess and use the returned value as a
pointer to th buffer.

pout=pnewaddr won't work. The content pout must be changed, not pout itself.

hope this helps

--
----------------------------------------------------------------
Anthony Pellerin
ADENEO (ADESET)
Windows Embedded Consultant
<apellerin AT adeneo DOT adetelgroup DOT com>
http://www.adeneo.adetelgroup.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------


"viddec" <viddec@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A44FECF3-C447-4F6D-95C7-D9CB79242D5D@xxxxxxxxxxxxxxxx
> Hi,
>
> I want to return to the user application a mapping to a physical buffer.
>
> Suppose the virtual address in the address space of device.exe is paddr
> does
>
> ioctl(instance, pin, size, pout, size, unused)
> {
> pnewaddr = MapPtrProcess(paddr, GetCallerProcess())
> pout = pnewaddr //should this be *pout = pnewaddr
> }
>
> return the new mapping in pout ?
>
>


.



Relevant Pages

  • NTLM Authentication & Pocket PC 2002
    ... When I called InitializeSecurityContext for the second time in an NTLM ... buffer), it crashed with a DataType Misalignment error. ... OutSecBuff.cbBuffer = *pcbOut; ... ZeroMemory (pOut, *pcbOut); ...
    (microsoft.public.pocketpc.developer)
  • [PATCH 1/6] docbook: fix filesystems.tmpl source files
    ... @mapping: ... @handle: transaction ... * Mark a buffer as containing dirty data which needs to be flushed before ... + * Mark dirty metadata which needs to be journaled as part of the current ...
    (Linux-Kernel)
  • Re: [RFC] fsblock
    ... fsblocks vs extent range mapping] ... The fsblocks and the vm page cache interface cannot be used to ... facilitate this because a radix tree is the wrong type of tree to ... but we keep the dirty each buffer part. ...
    (Linux-Kernel)
  • Re: [RFC] fsblock
    ... fsblocks vs extent range mapping] ... The fsblocks and the vm page cache interface cannot be used to ... facilitate this because a radix tree is the wrong type of tree to ... but we keep the dirty each buffer part. ...
    (Linux-Kernel)
  • Re: how to use buffer variable in command-line mode, in vim?
    ... > I'm puzzled on how to use a buffer variable in command line mode. ... :help mapping ... rather than including some literal control characters. ...
    (comp.editors)