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, 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-2023 Intel Corporation.
SPDX-License-Identifier: BSD-2-Clause-Patent DAOS Error numbers
#define D_DEFINE_ERRDESC | ( | name, | |
value, | |||
desc ) |
Preprocessor machinery for defining error descriptions
Definition at line 269 of file daos_errno.h.
#define D_DEFINE_ERRNO | ( | name, | |
value, | |||
desc ) |
Preprocessor machinery for defining error numbers
Definition at line 265 of file daos_errno.h.
#define D_DEFINE_ERRSTR | ( | name, | |
value, | |||
desc ) |
Preprocessor machinery for defining error number strings
Definition at line 267 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 272 of file daos_errno.h.
#define D_DEFINE_RANGE_ERRSTR | ( | name | ) |
Preprocessor machinery to define error strings for a consecutive range of error numbers
Definition at line 280 of file daos_errno.h.
#define D_DEREGISTER_RANGE | ( | name | ) |
Macro to deregister a range defined using D_DEFINE_RANGE macros
Definition at line 298 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 168 of file daos_errno.h.
#define D_FOREACH_ERR_RANGE | ( | ACTION | ) |
Defines the gurt error codes
Definition at line 260 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 28 of file daos_errno.h.
#define D_REGISTER_RANGE | ( | name | ) |
Macro to register a range defined using D_DEFINE_RANGE macros
Definition at line 291 of file daos_errno.h.
#define DER_SUCCESS 0 |
Return value representing success
Definition at line 302 of file daos_errno.h.
#define DER_UNKNOWN (DER_ERR_GURT_BASE + 500000) |
Unknown error
Definition at line 304 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 |