17 #include "libocxl_internal.h" 29 #ifdef TEST_ENVIRONMENT 37 __attribute__ ((used))
static void ocxl_set_sys_path(
const char *path)
49 __attribute__ ((used))
static void ocxl_set_dev_path(
const char *path)
54 #endif // TEST_ENVIRONMENT 95 error_handler = handler;
121 return "AFU context not available";
124 return "AFU interrupt not available";
127 return "Internal error";
130 return "Already done";
133 return "Out of bounds";
136 return "No more contexts";
139 return "Invalid arguments";
142 return "Unknown error";
const char * ocxl_err_to_string(ocxl_err err)
Convert an error value to a string.
ocxl_err
Potential return values from ocxl_* functions.
void ocxl_set_error_message_handler(void(*handler)(ocxl_err error, const char *message))
Override the default handler for emitting error messages from open calls.
The action requested falls outside the permitted area.
The call requires an open context on the AFU.
#define OCXL_ERRORS
Error messages requested.
One or more arguments are invalid.
an internal error has occurred
void ocxl_enable_messages(uint64_t sources)
Enable messages from libocxl open calls.
no further interrupts are available, or the interrupt is invalid
An out of memory error occurred.
#define OCXL_TRACING
Tracing requested.
No more contexts can be opened on the AFU.
The action requested has already been performed.