NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
doca_error.h File Reference
#include <doca_compat.h>
#include <doca_common_defines.h>
Include dependency graph for doca_error.h:

Go to the source code of this file.

Macros

#define DOCA_IS_ERROR(r)   doca_unlikely((r) != DOCA_SUCCESS)
 Compiler optimized macro to check if we have an error. More...
 
#define DOCA_ERROR_PROPAGATE(r, t)
 Save the first encountered doca_error_t. More...
 

Typedefs

typedef enum doca_error doca_error_t
 DOCA API return codes. More...
 

Enumerations

enum  doca_error {
  DOCA_SUCCESS = 0 , DOCA_ERROR_UNKNOWN = 1 , DOCA_ERROR_NOT_PERMITTED = 2 , DOCA_ERROR_IN_USE = 3 ,
  DOCA_ERROR_NOT_SUPPORTED = 4 , DOCA_ERROR_AGAIN = 5 , DOCA_ERROR_INVALID_VALUE = 6 , DOCA_ERROR_NO_MEMORY = 7 ,
  DOCA_ERROR_INITIALIZATION = 8 , DOCA_ERROR_TIME_OUT = 9 , DOCA_ERROR_SHUTDOWN = 10 , DOCA_ERROR_CONNECTION_RESET = 11 ,
  DOCA_ERROR_CONNECTION_ABORTED = 12 , DOCA_ERROR_CONNECTION_INPROGRESS = 13 , DOCA_ERROR_NOT_CONNECTED = 14 , DOCA_ERROR_NO_LOCK = 15 ,
  DOCA_ERROR_NOT_FOUND = 16 , DOCA_ERROR_IO_FAILED = 17 , DOCA_ERROR_BAD_STATE = 18 , DOCA_ERROR_UNSUPPORTED_VERSION = 19 ,
  DOCA_ERROR_OPERATING_SYSTEM = 20 , DOCA_ERROR_DRIVER = 21 , DOCA_ERROR_UNEXPECTED = 22 , DOCA_ERROR_ALREADY_EXIST = 23 ,
  DOCA_ERROR_FULL = 24 , DOCA_ERROR_EMPTY = 25 , DOCA_ERROR_IN_PROGRESS = 26 , DOCA_ERROR_TOO_BIG = 27 ,
  DOCA_ERROR_AUTHENTICATION = 28 , DOCA_ERROR_BAD_CONFIG = 29 , DOCA_ERROR_SKIPPED = 30
}
 DOCA API return codes. More...
 

Functions

DOCA_STABLE const char * doca_error_get_name (doca_error_t error)
 Returns the string representation of an error code name. More...
 
DOCA_STABLE const char * doca_error_get_descr (doca_error_t error)
 Returns the description string of an error code. More...