CXL_SET_PREFAULT_MODE(3) | CXL Programmer's Manual | CXL_SET_PREFAULT_MODE(3) |
cxl_set_prefault_mode - set the mode for prefaulting segments
#include <libcxl.h>
int cxl_set_prefault_mode(struct cxl_afu_h *afu, enum cxl_prefault_mode value);
cxl_set_prefault_mode() sets the prefault mode of afu to value. The current mode will be used for prefaulting in segments into the segment table when performing cxl_afu_attach(), cxl_afu_attach_full() or cxl_afu_attach_work(). Mode must 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_prefault_mode(3)
2017-05-24 | LIBCXL 1.5 |