RTEMS 6.1-rc2
|
This group contains the Classic API directive status codes and support functions. More...
Macros | |
#define | RTEMS_STATUS_CODES_FIRST RTEMS_SUCCESSFUL |
This constant represents the lowest valid value for a Classic API directive status code. | |
#define | RTEMS_STATUS_CODES_LAST RTEMS_PROXY_BLOCKING |
This constant represents the highest valid value for a Classic API directive status code. | |
Enumerations | |
enum | rtems_status_code { RTEMS_SUCCESSFUL = 0 , RTEMS_TASK_EXITTED = 1 , RTEMS_MP_NOT_CONFIGURED = 2 , RTEMS_INVALID_NAME = 3 , RTEMS_INVALID_ID = 4 , RTEMS_TOO_MANY = 5 , RTEMS_TIMEOUT = 6 , RTEMS_OBJECT_WAS_DELETED = 7 , RTEMS_INVALID_SIZE = 8 , RTEMS_INVALID_ADDRESS = 9 , RTEMS_INVALID_NUMBER = 10 , RTEMS_NOT_DEFINED = 11 , RTEMS_RESOURCE_IN_USE = 12 , RTEMS_UNSATISFIED = 13 , RTEMS_INCORRECT_STATE = 14 , RTEMS_ALREADY_SUSPENDED = 15 , RTEMS_ILLEGAL_ON_SELF = 16 , RTEMS_ILLEGAL_ON_REMOTE_OBJECT = 17 , RTEMS_CALLED_FROM_ISR = 18 , RTEMS_INVALID_PRIORITY = 19 , RTEMS_INVALID_CLOCK = 20 , RTEMS_INVALID_NODE = 21 , RTEMS_NOT_CONFIGURED = 22 , RTEMS_NOT_OWNER_OF_RESOURCE = 23 , RTEMS_NOT_IMPLEMENTED = 24 , RTEMS_INTERNAL_ERROR = 25 , RTEMS_NO_MEMORY = 26 , RTEMS_IO_ERROR = 27 , RTEMS_INTERRUPTED = 28 , RTEMS_PROXY_BLOCKING = 29 } |
This enumeration provides status codes for directives of the Classic API. More... | |
Functions | |
int | rtems_status_code_to_errno (rtems_status_code status_code) |
Maps the RTEMS status code to a POSIX error number. | |
const char * | rtems_status_text (rtems_status_code status_code) |
Maps the status code to a descriptive text. | |
This group contains the Classic API directive status codes and support functions.
enum rtems_status_code |
This enumeration provides status codes for directives of the Classic API.
int rtems_status_code_to_errno | ( | rtems_status_code | status_code | ) |
Maps the RTEMS status code to a POSIX error number.
status_code | is the status code to map. |
0 | The status code was RTEMS_SUCCESSFUL. |
EBADF | The status code was RTEMS_INVALID_NUMBER. |
EBUSY | The status code was RTEMS_RESOURCE_IN_USE. |
EINTR | The status code was RTEMS_INTERRUPTED. |
EINVAL | The status code was RTEMS_INVALID_CLOCK, RTEMS_INVALID_NAME, or RTEMS_INVALID_NODE. |
EIO | The status code was RTEMS_ALREADY_SUSPENDED, RTEMS_CALLED_FROM_ISR, RTEMS_ILLEGAL_ON_REMOTE_OBJECT, RTEMS_ILLEGAL_ON_SELF, RTEMS_INCORRECT_STATE, RTEMS_INTERNAL_ERROR, RTEMS_INVALID_ADDRESS, RTEMS_INVALID_ID, RTEMS_INVALID_PRIORITY, RTEMS_INVALID_SIZE, RTEMS_IO_ERROR, RTEMS_MP_NOT_CONFIGURED, RTEMS_NOT_DEFINED, RTEMS_OBJECT_WAS_DELETED, RTEMS_PROXY_BLOCKING, RTEMS_TASK_EXITTED, or RTEMS_TOO_MANY. |
ENODEV | The status code was RTEMS_UNSATISFIED. |
ENOMEM | The status code was RTEMS_NO_MEMORY. |
ENOSYS | The status code was RTEMS_NOT_CONFIGURED or RTEMS_NOT_IMPLEMENTED. |
EPERM | The status code was RTEMS_NOT_OWNER_OF_RESOURCE. |
ETIMEDOUT | The status code was RTEMS_TIMEOUT. |
const char * rtems_status_text | ( | rtems_status_code | status_code | ) |
Maps the status code to a descriptive text.
status_code | is the status code. |
The text for each status code is the enumerator constant.
? | The status code is invalid. |