CXL_GET_PREFAULT_MODE(3) | CXL Programmer's Manual | CXL_GET_PREFAULT_MODE(3) |
cxl_get_prefault_mode - get the mode for prefaulting segments
#include <libcxl.h>
int cxl_get_prefault_mode(struct cxl_afu_h *afu, enum cxl_prefault_mode *valp);
cxl_get_prefault_mode() gets the current mode used for prefaulting in segments into the segment table when performing cxl_afu_attach(). The prefault_mode of afu is copied to the long integer pointed to by valp. Mode will be one of the enum cxl_prefault_mode values:
On success, 0 is returned. On error, -1 is returned and errno is set appropriately.
cxl(3), cxl_adapter_afu_next(3), cxl_afu_attach(3), cxl_afu_attach_full(3), cxl_afu_attach_work(3), cxl_afu_next(3), cxl_get_api_version(3), cxl_get_api_version_compatible(3), cxl_get_irqs_max(3), cxl_get_irqs_min(3), cxl_get_mode(3), cxl_get_modes_supported(3), cxl_set_prefault_mode(3)
2017-05-24 | LIBCXL 1.5 |