CXL_ERRINFO_READ(3) | CXL Programmer's Manual | CXL_ERRINFO_READ(3) |
cxl_errinfo_read - Read and copy the contents of afu_err_info buffer
#include<libcxl.h>
ssize_t cxl_errinfo_read(struct cxl_afu_h *afu, void *dst, off_t off, size_t len);
cxl_errinfo_read attempts to read upto len bytes located at offset off in AFU Error Buffer and copy it to user provided buffer located at dst.
AFU Error Buffer is used by the afu to report application specific errors. The contents of this buffer are afu specific and are intended to be interpreted by the application interacting with the afu.
On success, returns the number of bytes copied from the afu_err_buff to dst.
On error, -1 is returned, errno is set appropriately and the contents at dst are not touched.
2017-05-24 | LIBCXL 1.5 |