table of contents
CXL_FPRINT_EVENT(3) | CXL Programmer's Manual | CXL_FPRINT_EVENT(3) |
NAME¶
cxl_fprint_event - print out a description of a CXL event for debuggingSYNOPSIS¶
#include <stdio.h>#include <libcxl.h>
int cxl_fprint_event(FILE *stream, struct cxl_event *event);
DESCRIPTION¶
cxl_fprint_event() prints out a description of the CXL event to the file stream.The description is based on the event type. If the type is unknown, then cxl_fprint_event() calls cxl_fprint_unknown_event() instead, and prints out a hex dump of the raw event.
RETURN VALUE¶
On success, the number of bytes written to stream is returned. On error, -1 is returned and errno is set appropriately.ERRORS¶
- EINVAL
- Invalid argument value.
- ENODATA
- No data available.
SEE ALSO¶
cxl(3), cxl_fprint_unknown_event(3), cxl_event_pending(3), cxl_read_event(3), cxl_read_expected_event(3)2016-05-25 | LIBCXL 1.4 |