How to get the Physical address for DDR memory when runing CPP in PYNQ?

I know I can use Python allocate library, and use device_address. But this is in Python, the speed is quiet limitted compared to SDK. But SDK is standalone, and I want use Linux with CPP. I know I can use mmap() function to transder physial address to virtual address, but how to transfer virtual address to physical address? In short, how can I get the “device_address” of one block of memory in ddr in linux using cpp?

Hi @BBB,

Welcome to the PYNQ forums.

This is not a PYNQ question, you may be better off asking in the Xilinx forums.