Scroll to navigation

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

NAME

cxl_get_pp_mmio_len - get the per-process MMIO space length

SYNOPSIS

#include <libcxl.h>

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

DESCRIPTION

cxl_get_pp_mmio_len() copies the per-process MMIO space length 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_off(3)

2017-05-24 LIBCXL 1.5