- bullseye 1.7-2+b1
|CXL_FPRINT_EVENT(3)||CXL Programmer's Manual||CXL_FPRINT_EVENT(3)|
cxl_fprint_event - print out a description of a CXL event for debugging
int cxl_fprint_event(FILE *stream, struct cxl_event *event);
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.
On success, the number of bytes written to stream is returned. On error, -1 is returned and errno is set appropriately.
cxl(3), cxl_fprint_unknown_event(3), cxl_event_pending(3), cxl_read_event(3), cxl_read_expected_event(3)