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

Page 1 of 1

How I can get phycial address from virtual memory address

PostPosted: Wed May 28, 2003 2:01 am
by xuyong
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?

PostPosted: Wed May 28, 2003 5:08 am
by cdm
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.