How to access Host/Arm memory in DPA device?

I use the function to get a ptr, but i can not read/write memory by the ptr

doca_dpa_dev_uintptr_t doca_dpa_dev_mmap_get_external_ptr(doca_dpa_dev_mmap_t mmap_handle, uint64_t addr)

The function claim that after calling this API, users can read/write the memory indicated by the returned pointer from the DPA kernel. But i do not know the next step when i get the returned pointer.