DOKK / manpages / debian 11 / libcxl-dev / cxl_read_event.3.en
CXL_READ_EVENT(3) CXL Programmer's Manual CXL_READ_EVENT(3)

cxl_read_event - read one CXL event from an AFU

#include <libcxl.h>

int cxl_read_event(struct cxl_afu_h *afu, struct cxl_event *event);

cxl_read_event() reads one CXL event from afu, and copies it to the structure pointed to by event.

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

AFU device opened with O_NONBLOCK, and no data immediately available.
Interrupted read() system call.
Invalid argument value, or AFU not opened.
Unrecoverable error.
No data returned by read().
Insufficient memory.

/dev/cxl/afu<i>.<j>d
AFU device in dedicated process mode.
/dev/cxl/afu<i>.<j>m
AFU device in AFU directed mode, master context.
/dev/cxl/afu<i>.<j>s
AFU device in AFU directed mode, slave context.

cxl(3), cxl_afu_fd_to_h(3), cxl_afu_open_dev(3), cxl_afu_open_h(3), cxl_afu_opened(3), cxl_fprint_event(3), cxl_fprint_unknown_event(3), cxl_event_pending(3), cxl_read_expected_event(3), open(2), read(2)

2017-05-24 LIBCXL 1.5