.\" Copyright 2015-2017 IBM Corp. .\" .TH CXL_GET_PP_MMIO_OFF 3 2017-05-24 "LIBCXL 1.5" "CXL Programmer's Manual" .SH NAME cxl_get_pp_mmio_off \- get the per-process MMIO space offset .SH SYNOPSIS .B #include .PP .B "int cxl_get_pp_mmio_off(struct cxl_afu_h" .BI * afu ", long *" valp ); .SH DESCRIPTION .BR cxl_get_pp_mmio_off () copies the per-process MMIO space offset of .I afu to the long integer pointed to by .IR valp . The AFU must be opened in AFU directed mode, master context. .SH RETURN VALUE On success, 0 is returned. On error, \-1 is returned and .I errno is set appropriately. .SH ERRORS .TP .B EINVAL Invalid argument value. .TP .B ENODEV Invalid AFU device. .TP .B ENOMEM Insufficient memory. .SH FILES .TP .BI /dev/cxl/afu . m AFU device in directed mode, master context. .SH SEE ALSO .BR cxl (3), .BR cxl_adapter_afu_next (3), .BR cxl_afu_next (3), .BR cxl_get_pp_mmio_len (3)