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¶
- EINVAL
- Invalid argument value.
- ENODEV
- Invalid AFU device.
- ENOMEM
- Insufficient memory.
FILES¶
- /dev/cxl/afu<i>.<j>m
- AFU device in directed mode, master context.