How to find a physical address of pointer? I mean not in network ddk, but
simply in some application (resource manager) :
void p = (void)malloc(40);
ulong_t paddr = some_call(p);
??
Thanks,
Arunas
How to find a physical address of pointer? I mean not in network ddk, but
simply in some application (resource manager) :
void p = (void)malloc(40);
ulong_t paddr = some_call(p);
??
Thanks,
Arunas
look at mem_offset();
-seanb
Arunas Bytautas <arubyt@elsis.com> wrote:
: How to find a physical address of pointer? I mean not in network ddk, but
: simply in some application (resource manager) :
: void p = (void)malloc(40);
: ulong_t paddr = some_call(p);
: ??
: Thanks,
: Arunas
There is also a function called mphys in io_net_self_t which looks up the
physical address of a buffer.
Hope it helps
Sreekanth
Sean Boudreau <seanb@qnx.com> wrote in message
news:9r4boc$ct5$1@nntp.qnx.com…
look at mem_offset();
-seanb
Arunas Bytautas <> arubyt@elsis.com> > wrote:
: How to find a physical address of pointer? I mean not in network ddk,
but
: simply in some application (resource manager) :: void p = (void)malloc(40);
: ulong_t paddr = some_call(p);
: ??: Thanks,
: Arunas