DOKK / manpages / debian 10 / libcxl-dev / cxl_get_api_version_compatible.3.en
CXL_GET_API_VERSION_COMPATIBLE(3) CXL Manual CXL_GET_API_VERSION_COMPATIBLE(3)

cxl_get_api_version_compatible - get the lowest CXL API version compatible with the kernel

#include <libcxl.h>

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

cxl_get_api_version_compatible() copies the lowest CXL API version compatible with the kernel, supported by afu, to the long integer pointed to by valp.

On success, 0 is returned. On error, -1 is returned and errno is set appropriately.

Invalid argument value.
Insufficient memory.

cxl(3), cxl_afu_fd_to_h(3), cxl_afu_open_dev(3), cxl_afu_open_h(3), cxl_get_api_version(3), cxl_get_mode(3), cxl_get_modes_supported(3), cxl_get_prefault_mode(3)

2017-05-24 LIBCXL 1.5