DOKK / manpages / debian 11 / libcxl-dev / cxl_mmio_ptr.3.en
CXL_MMIO_PTR(3) CXL Programmer's Manual CXL_MMIO_PTR(3)

cxl_mmio_ptr - return the address of the mapped AFU Problem State Area

#include <libcxl.h>

int cxl_mmio_ptr(struct cxl_afu_h *afu, void **mmio_ptr);

cxl_mmio_ptr() copies the address of the mapped Problem State Area of afu to the pointer mmio_ptr.

On success, 0 is returned. On error, -1 is returned and errno is set appropriately.

Invalid argument value, or MMIO space not mapped.
Insufficient memory.

cxl(3), cxl_get_mmio_size(3), cxl_mmio_map(3), cxl_mmio_read32(3), cxl_mmio_read64(3), cxl_mmio_unmap(3), cxl_mmio_write32(3), cxl_mmio_write64(3)

2017-05-24 LIBCXL 1.5