source: rtems-docs/c-user/directive_status_codes.rst @ c65aeed

5
Last change on this file since c65aeed was 3079455, checked in by Joel Sherrill <joel@…>, on 12/05/17 at 16:16:11

Account for non-preemption and interrupt level not supported on SMP

Closes #3000.

  • Property mode set to 100644
File size: 2.5 KB
Line 
1.. comment SPDX-License-Identifier: CC-BY-SA-4.0
2
3.. COMMENT: Copyright 2015 embedded brains GmbH
4.. COMMENT: All rights reserved.
5
6.. index:: Status Codes
7
8Directive Status Codes
9**********************
10
11Introduction
12============
13
14The directive status code directives are:
15
16- rtems_status_text_ - Return the name for the status code
17
18Directives
19==========
20
21The directives are:
22
23.. index:: rtems_status_code
24
25.. list-table::
26 :class: rtems-table
27
28 * - ``RTEMS_SUCCESSFUL``
29   - successful completion
30 * - ``RTEMS_TASK_EXITTED``
31   - returned from a task
32 * - ``RTEMS_MP_NOT_CONFIGURED``
33   - multiprocessing not configured
34 * - ``RTEMS_INVALID_NAME``
35   - invalid object name
36 * - ``RTEMS_INVALID_ID``
37   - invalid object id
38 * - ``RTEMS_TOO_MANY``
39   - too many
40 * - ``RTEMS_TIMEOUT``
41   - timed out waiting
42 * - ``RTEMS_OBJECT_WAS_DELETED``
43   - object was deleted while waiting
44 * - ``RTEMS_INVALID_SIZE``
45   - invalid specified size
46 * - ``RTEMS_INVALID_ADDRESS``
47   - invalid address specified
48 * - ``RTEMS_INVALID_NUMBER``
49   - number was invalid
50 * - ``RTEMS_NOT_DEFINED``
51   - item not initialized
52 * - ``RTEMS_RESOURCE_IN_USE``
53   - resources outstanding
54 * - ``RTEMS_UNSATISFIED``
55   - request not satisfied
56 * - ``RTEMS_INCORRECT_STATE``
57   - task is in wrong state
58 * - ``RTEMS_ALREADY_SUSPENDED``
59   - task already in state
60 * - ``RTEMS_ILLEGAL_ON_SELF``
61   - illegal for calling task
62 * - ``RTEMS_ILLEGAL_ON_REMOTE_OBJECT``
63   - illegal for remote object
64 * - ``RTEMS_CALLED_FROM_ISR``
65   - invalid environment
66 * - ``RTEMS_INVALID_PRIORITY``
67   - invalid task priority
68 * - ``RTEMS_INVALID_CLOCK``
69   - invalid time buffer
70 * - ``RTEMS_INVALID_NODE``
71   - invalid node id
72 * - ``RTEMS_NOT_CONFIGURED``
73   - directive not configured
74 * - ``RTEMS_NOT_OWNER_OF_RESOURCE``
75   - not owner of resource
76 * - ``RTEMS_NOT_IMPLEMENTED``
77   - directive not implemented or feature not available in configuration
78 * - ``RTEMS_INTERNAL_ERROR``
79   - RTEMS inconsistency detected
80 * - ``RTEMS_NO_MEMORY``
81   - could not get enough memory
82
83.. raw:: latex
84
85   \clearpage
86
87.. index:: rtems_status_text
88
89.. _rtems_status_text:
90
91STATUS_TEXT - Returns the enumeration name for a status code
92------------------------------------------------------------
93
94CALLING SEQUENCE:
95    .. code-block:: c
96
97        const char *rtems_status_text(
98            rtems_status_code code
99        );
100
101DIRECTIVE STATUS CODES
102    The status code enumeration name or "?" in case the status code is invalid.
103
104DESCRIPTION:
105    Returns the enumeration name for the specified status code.
Note: See TracBrowser for help on using the repository browser.