DAOS API (v2.1 - dev)
|
Macros | |
#define | D_FOREACH_GURT_ERR(ACTION) |
#define | D_FOREACH_DAOS_ERR(ACTION) |
#define | D_FOREACH_ERR_RANGE(ACTION) |
#define | D_DEFINE_ERRNO(name, desc) |
#define | D_DEFINE_ERRSTR(name, desc) |
#define | D_DEFINE_ERRDESC(name, desc) |
#define | D_DEFINE_RANGE_ERRNO(name, base) |
Enumerations | |
enum | daos_errno { DER_SUCCESS = 0 , DER_UNKNOWN = (DER_ERR_GURT_BASE + 500000) } |
Functions | |
const char * | d_errstr (int errnum) |
const char * | d_errdesc (int errnum) |
(C) Copyright 2016-2024 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent DAOS Error numbers
#define D_DEFINE_ERRDESC | ( | name, | |
desc ) |
Preprocessor machinery for defining error descriptions
Definition at line 227 of file daos_errno.h.
#define D_DEFINE_ERRNO | ( | name, | |
desc ) |
Preprocessor machinery for defining error numbers
Definition at line 223 of file daos_errno.h.
#define D_DEFINE_ERRSTR | ( | name, | |
desc ) |
Preprocessor machinery for defining error number strings
Definition at line 225 of file daos_errno.h.
#define D_DEFINE_RANGE_ERRNO | ( | name, | |
base ) |
Preprocessor machinery to define a consecutive range of error numbers
Definition at line 230 of file daos_errno.h.
#define D_FOREACH_DAOS_ERR | ( | ACTION | ) |
TODO: add more error numbers Preprocessor macro defining DAOS errno values and internal definition of d_errstr
Definition at line 126 of file daos_errno.h.
#define D_FOREACH_ERR_RANGE | ( | ACTION | ) |
Defines the gurt error codes
Definition at line 218 of file daos_errno.h.
#define D_FOREACH_GURT_ERR | ( | ACTION | ) |
Preprocessor macro defining GURT errno values and internal definition of d_errstr
Definition at line 30 of file daos_errno.h.
enum daos_errno |
The actual error codes
Enumerator | |
---|---|
DER_SUCCESS | Return value representing success |
DER_UNKNOWN | Unknown error value |
Definition at line 234 of file daos_errno.h.
const char * d_errdesc | ( | int | errnum | ) |
Return an error description string associated with a registered gurt errno.
[in] | errnum | The error code |
const char * d_errstr | ( | int | errnum | ) |
Return a string associated with a registered gurt errno
[in] | errnum | The error code |