DOKK / manpages / debian 10 / libcxl-dev / cxl_fprint_event.3.en
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

#include <stdio.h>
#include <libcxl.h>

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.

Invalid argument value.
No data available.

cxl(3), cxl_fprint_unknown_event(3), cxl_event_pending(3), cxl_read_event(3), cxl_read_expected_event(3)

2017-05-24 LIBCXL 1.5