source: rtems-central/spec/rtems/task/if/construct.yml @ 3bdf817

Last change on this file since 3bdf817 was 3bdf817, checked in by Sebastian Huber <sebastian.huber@…>, on 09/16/20 at 09:48:29

spec: Group items by component

  • Property mode set to 100644
File size: 3.7 KB
Line 
1SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
2brief: |
3  Creates a task from the specified the task configuration.
4copyrights:
5- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
6definition:
7  default:
8    body: null
9    params:
10    - const ${config:/name} *${.:/params[0]/name}
11    - ${../../type/if/id:/name} *${.:/params[1]/name}
12    return: ${../../status/if/code:/name}
13  variants: []
14description: null
15enabled-by: true
16interface-type: function
17links:
18- role: interface-placement
19  uid: header
20- role: interface-ingroup
21  uid: group
22name: rtems_task_construct
23notes: |
24  In contrast to tasks created by ${create:/name}, the tasks constructed by
25  this directive use a user-provided task storage area.  The task storage area
26  contains the task stack, the thread-local storage, and the floating-point
27  context on architectures with a separate floating-point context.
28
29  It is not recommended to mix ${create:/name} and ${.:/name} in an
30  application.  This directive is intended for applications which do not want
31  to use the RTEMS Workspace and instead statically allocate all operating
32  system resources.  The stack space estimate done by <rtems/confdefs.h>
33  assumes that all tasks are created by ${create:/name}.  The estimate can be
34  adjusted to take user-provided task storage areas into account through the
35  ${/acfg/if/min-tasks-with-user-provided-storage:/name} application
36  configuration option.
37params:
38- description: is the task configuration.
39  dir: null
40  name: config
41- description: |
42    is the pointer to an object identifier variable.  The identifier of the
43    constructed task object will be stored in this variable, in case of a
44    successful operation.
45  dir: out
46  name: id
47return:
48  return: null
49  return-values:
50  - description: |
51      The requested operation was successful.
52    value: ${../../status/if/successful:/name}
53  - description: |
54      The ${.:/params[1]/name} parameter was ${/c/if/null:/name}.
55    value: ${../../status/if/invalid-address:/name}
56  - description: |
57      The task name was invalid.
58    value: ${../../status/if/invalid-name:/name}
59  - description: |
60      The initial task priority was invalid.
61    value: ${../../status/if/invalid-priority:/name}
62  - description: |
63      The thread-local storage size is greater than the maximum thread-local
64      storage size specified in the task configuration.  The thread-local
65      storage size is determined by the thread-local variables used by the
66      application and ${/acfg/if/max-thread-local-storage-size:/name}.
67    value: ${../../status/if/invalid-size:/name}
68  - description: |
69      The task storage area was too small to provide a task stack of the
70      configured minimum size, see ${/acfg/if/min-task-stack-size:/name}.
71      The task storage area contains the task stack, the thread-local storage,
72      and the floating-point context on architectures with a separate
73      floating-point context.
74    value: ${../../status/if/invalid-size:/name}
75  - description: |
76      There was no inactive task object available to construct a task.
77    value: ${../../status/if/too-many:/name}
78  - description: |
79      In multiprocessing configurations, there was no inactive global object
80      available to construct a global task.
81    value: ${../../status/if/too-many:/name}
82  - description: |
83      One of the task create extensions failed during the task construction.
84    value: ${../../status/if/unsatisfied:/name}
85  - description: |
86      In SMP configurations, the non-preemption mode was not supported.
87    value: ${../../status/if/unsatisfied:/name}
88  - description: |
89      In SMP configurations, the interrupt level mode was not supported.
90    value: ${../../status/if/unsatisfied:/name}
91type: interface
Note: See TracBrowser for help on using the repository browser.