In the QNX platform.
The appMemMap function using mmap to transform the physical address to virtual address.
But the appMemGetVirt2PhyBufPtr using mem_offset64 to transform the virtual address to physical address.
Function implement in file :
PSDKRA/vision_apps/utils/console_io/src/app_log_qnx.c
PSDKRA/vision_apps/utils/mem/src/app_mem_qnx.c
Why it is different ? In my opinion, the mmap -> mem_offset, the mmap64 -> mem_offset64.
More question, If I do the following step:
1) I transform the phycial address 0xB200_0000 to virtual address using mmap.
2) And then transform it back to phycial address using mem_offset.
3) I got a 64bit return value.
Can I ignore the high 32 bits, only using the low 32 bits ?