CXL_MMIO_PTR(3)

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

SYNOPSIS
#include <libcxl.h>

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

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

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

ERRORS

EINVAL
    Invalid argument value, or MMIO space not mapped.

ENOMEM
    Insufficient memory.

SEE ALSO
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)