Scroll to navigation

CXL_MMIO_PTR(3) CXL Programmer's Manual 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

Invalid argument value, or MMIO space not mapped.
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)

2017-05-24 LIBCXL 1.5