CXL_ERRINFO_SIZE(3) | CXL Programmer's Manual | CXL_ERRINFO_SIZE(3) |
cxl_errinfo_size - returns the size of afu_err_buff in bytes
#include<libcxl.h>
int cxl_errinfo_size(struct cxl_afu_h *afu, size_t *valp);
cxl_errinfo_size stores the size (in bytes) of the AFU Error Buffer associated with the provided afu context handle at valp.
Applications can also use this function to determine if the afu_err_buff exists for the attached afu.
On success, 0 is returned and size of the buffer is stored at valp
On error, -1 is returned, errno is set appropriately and the contents at valp are not touched
2017-05-24 | LIBCXL 1.5 |