Scroll to navigation

CXL_GET_PP_MMIO_OFF(3) CXL Programmer's Manual CXL_GET_PP_MMIO_OFF(3)

NAME

cxl_get_pp_mmio_off - get the per-process MMIO space offset

SYNOPSIS

#include <libcxl.h>

int cxl_get_pp_mmio_off(struct cxl_afu_h *afu, long *valp);

DESCRIPTION

cxl_get_pp_mmio_off() copies the per-process MMIO space offset of afu to the long integer pointed to by valp. The AFU must be opened in AFU directed mode, master context.

RETURN VALUE

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

ERRORS

Invalid argument value.
Invalid AFU device.
Insufficient memory.

FILES

/dev/cxl/afu<i>.<j>m
AFU device in directed mode, master context.

SEE ALSO

cxl(3), cxl_adapter_afu_next(3), cxl_afu_next(3), cxl_get_pp_mmio_len(3)

2017-05-24 LIBCXL 1.5