.\" Copyright 2015-2017 IBM Corp. .\" .TH CXL_GET_API_VERSION_COMPATIBLE 3 2017-05-24 "LIBCXL 1.5" "CXL Manual" .SH NAME cxl_get_api_version_compatible \- get the lowest CXL API version compatible with the kernel .SH SYNOPSIS .B #include .PP .B "int cxl_get_api_version_compatible(struct cxl_afu_h" .BI * afu ", long *" valp ); .SH DESCRIPTION .BR cxl_get_api_version_compatible () copies the lowest CXL API version compatible with the kernel, supported by .IR afu , to the long integer pointed to by .IR valp . .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 ENOMEM Insufficient memory. .SH SEE ALSO .BR cxl (3), .BR cxl_afu_fd_to_h (3), .BR cxl_afu_open_dev (3), .BR cxl_afu_open_h (3), .BR cxl_get_api_version (3), .BR cxl_get_mode (3), .BR cxl_get_modes_supported (3), .BR cxl_get_prefault_mode (3)