Scroll to navigation

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 debugging

SYNOPSIS

#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

Invalid argument value.
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)

2017-05-24 LIBCXL 1.5