![]() |
DAOS API (v2.0)
|
Macros | |
#define | D_FOREACH_GURT_ERR(ACTION) |
#define | D_FOREACH_DAOS_ERR(ACTION) |
#define | D_FOREACH_ERR_RANGE(ACTION) |
#define | D_DEFINE_ERRNO(name, value, desc) |
#define | D_DEFINE_ERRSTR(name, value, desc) |
#define | D_DEFINE_ERRDESC(name, value, desc) |
#define | D_DEFINE_RANGE_ERRNO(name, base) |
#define | D_DEFINE_RANGE_ERRSTR(name) |
#define | D_REGISTER_RANGE(name) |
#define | D_DEREGISTER_RANGE(name) |
#define | DER_SUCCESS 0 |
#define | DER_UNKNOWN (DER_ERR_GURT_BASE + 500000) |
Functions | |
const char * | d_errstr (int rc) |
int | d_errno_register_range (int start, int end, const char *const *error_strings, const char *const *strerror) |
void | d_errno_deregister_range (int start) |
const char * | d_errdesc (int errnum) |
(C) Copyright 2016-2022 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent DAOS Error numbers
#define D_DEFINE_ERRDESC | ( | name, | |
value, | |||
desc ) |
Definition at line 287 of file daos_errno.h.
#define D_DEFINE_ERRNO | ( | name, | |
value, | |||
desc ) |
Definition at line 285 of file daos_errno.h.
#define D_DEFINE_ERRSTR | ( | name, | |
value, | |||
desc ) |
Definition at line 286 of file daos_errno.h.
#define D_DEFINE_RANGE_ERRNO | ( | name, | |
base ) |
Definition at line 289 of file daos_errno.h.
#define D_DEFINE_RANGE_ERRSTR | ( | name | ) |
Definition at line 296 of file daos_errno.h.
#define D_DEREGISTER_RANGE | ( | name | ) |
Macro to deregister a range defined using D_DEFINE_RANGE macros
Definition at line 314 of file daos_errno.h.
#define D_FOREACH_DAOS_ERR | ( | ACTION | ) |
TODO: add more error numbers
Definition at line 163 of file daos_errno.h.
#define D_FOREACH_ERR_RANGE | ( | ACTION | ) |
Defines the gurt error codes
Definition at line 281 of file daos_errno.h.
#define D_FOREACH_GURT_ERR | ( | ACTION | ) |
Definition at line 27 of file daos_errno.h.
#define D_REGISTER_RANGE | ( | name | ) |
Macro to register a range defined using D_DEFINE_RANGE macros
Definition at line 307 of file daos_errno.h.
#define DER_SUCCESS 0 |
Definition at line 317 of file daos_errno.h.
#define DER_UNKNOWN (DER_ERR_GURT_BASE + 500000) |
Definition at line 318 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 |
void d_errno_deregister_range | ( | int | start | ) |
De-register error codes with gurt. Use D_DEREGISTER_RANGE.
[in] | start | Start of error range |
int d_errno_register_range | ( | int | start, |
int | end, | ||
const char *const * | error_strings, | ||
const char *const * | strerror ) |
Register error codes with gurt. Use D_REGISTER_RANGE.
[in] | start | Start of error range. Actual errors start at start + 1 |
[in] | end | End of range. All error codes should be less than end |
[in] | error_strings | Array of strings. Must be one per code in the range |
[in] | strerror | Array of strings. Must be one per code in the range |
const char * d_errstr | ( | int | rc | ) |
Return a string associated with a registered gurt errno
[in] | rc | The error code |