NAME¶
cxl_get_api_version_compatible - get the lowest CXL API version compatible with
the kernel
SYNOPSIS¶
#include <libcxl.h>
int cxl_get_api_version_compatible(struct cxl_afu_h
*afu, long *valp);
DESCRIPTION¶
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.
RETURN VALUE¶
On success, 0 is returned. On error, -1 is returned and errno is set
appropriately.
ERRORS¶
- EINVAL
- Invalid argument value.
- ENOMEM
- Insufficient memory.