View topic - How I can get phycial address from virtual memory address

How I can get phycial address from virtual memory address

anything that doesn't fit to other groups.

How I can get phycial address from virtual memory address

Postby xuyong » Wed May 28, 2003 2:01 am

Now I need to get phycial address from virtual memory address,I know
I can get virtual memory address from phycial address by using mmap_device_memory(),but from the opposite direction,how to do?
xuyong
Senior Member
 
Posts: 431
Joined: Sun Mar 02, 2003 7:52 am

Postby cdm » Wed May 28, 2003 5:08 am

posix_mem_offset/offset64.

Be sure to read all the docs on it. And if you are looking to get memory to give to a device, be sure to use mmap() to get it so you can ensure it is phyiscally contiguous.
cdm
QNX Master
 
Posts: 789
Joined: Fri Jul 05, 2002 9:38 am


Return to General Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron