RTEMS
extension.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 
11 /*
12  * Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
13  * Copyright (C) 1988, 2008 On-Line Applications Research Corporation (OAR)
14  *
15  * Redistribution and use in source and binary forms, with or without
16  * modification, are permitted provided that the following conditions
17  * are met:
18  * 1. Redistributions of source code must retain the above copyright
19  * notice, this list of conditions and the following disclaimer.
20  * 2. Redistributions in binary form must reproduce the above copyright
21  * notice, this list of conditions and the following disclaimer in the
22  * documentation and/or other materials provided with the distribution.
23  *
24  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
28  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34  * POSSIBILITY OF SUCH DAMAGE.
35  */
36 
37 /*
38  * Do not manually edit this file. It is part of the RTEMS quality process
39  * and was automatically generated.
40  *
41  * If you find something that needs to be fixed or worded better please
42  * post a report to an RTEMS mailing list or raise a bug report:
43  *
44  * https://docs.rtems.org/branches/master/user/support/bugs.html
45  *
46  * For information on updating and regenerating please refer to:
47  *
48  * https://docs.rtems.org/branches/master/eng/req/howto.html
49  */
50 
51 /* Generated from spec:/rtems/userext/if/header */
52 
53 #ifndef _RTEMS_EXTENSION_H
54 #define _RTEMS_EXTENSION_H
55 
56 #include <rtems/rtems/status.h>
57 #include <rtems/rtems/types.h>
58 #include <rtems/score/interr.h>
60 
61 #ifdef __cplusplus
62 extern "C" {
63 #endif
64 
65 /* Generated from spec:/rtems/userext/if/group */
66 
77 /* Generated from spec:/rtems/userext/if/table */
78 
85 
86 /* Generated from spec:/rtems/userext/if/create */
87 
100  rtems_name name,
101  const rtems_extensions_table *extension_table,
102  rtems_id *id
103 );
104 
105 /* Generated from spec:/rtems/userext/if/delete */
106 
115 
116 /* Generated from spec:/rtems/userext/if/fatal */
117 
124 
125 /* Generated from spec:/rtems/userext/if/fatal-code */
126 
132 typedef Internal_errors_t rtems_fatal_code;
133 
134 /* Generated from spec:/rtems/userext/if/fatal-source */
135 
142 
143 /* Generated from spec:/rtems/userext/if/ident */
144 
178 
179 /* Generated from spec:/rtems/userext/if/task-begin */
180 
187 
188 /* Generated from spec:/rtems/userext/if/task-create */
189 
196 
197 /* Generated from spec:/rtems/userext/if/task-delete */
198 
205 
206 /* Generated from spec:/rtems/userext/if/task-exitted */
207 
214 
215 /* Generated from spec:/rtems/userext/if/task-restart */
216 
223 
224 /* Generated from spec:/rtems/userext/if/task-start */
225 
232 
233 /* Generated from spec:/rtems/userext/if/task-switch */
234 
241 
242 /* Generated from spec:/rtems/userext/if/task-terminate */
243 
250 
251 #ifdef __cplusplus
252 }
253 #endif
254 
255 #endif /* _RTEMS_EXTENSION_H */
Constants and Prototypes Related to the Internal Error Handler.
void(* User_extensions_thread_delete_extension)(struct _Thread_Control *executing, struct _Thread_Control *deleted)
Task delete extension.
Definition: userext.h:89
This header file defines types provided by the Classic API.
void(* User_extensions_thread_begin_extension)(struct _Thread_Control *executing)
Task begin extension.
Definition: userext.h:169
User Extension Handler Data Structures.
User_extensions_thread_switch_extension rtems_task_switch_extension
%
Definition: extension.h:240
uint32_t rtems_name
This type is used to represent a Classic API object name.
Definition: types.h:227
bool(* User_extensions_thread_create_extension)(struct _Thread_Control *executing, struct _Thread_Control *created)
Task create extension.
Definition: userext.h:69
User_extensions_thread_delete_extension rtems_task_delete_extension
%
Definition: extension.h:204
void(* User_extensions_thread_restart_extension)(struct _Thread_Control *executing, struct _Thread_Control *restarted)
Task restart extension.
Definition: userext.h:131
User_extensions_fatal_extension rtems_fatal_extension
%
Definition: extension.h:123
User_extensions_thread_start_extension rtems_task_start_extension
%
Definition: extension.h:231
void(* User_extensions_thread_switch_extension)(struct _Thread_Control *executing, struct _Thread_Control *heir)
Task switch extension.
Definition: userext.h:154
This header file defines the status codes and support functions of the Classic API.
Internal_errors_Source
This type lists the possible sources from which an error can be reported.
Definition: interr.h:47
User_extensions_Table rtems_extensions_table
%
Definition: extension.h:84
void(* User_extensions_fatal_extension)(Internal_errors_Source source, bool always_set_to_false, Internal_errors_t code)
Fatal error extension.
Definition: userext.h:201
void(* User_extensions_thread_start_extension)(struct _Thread_Control *executing, struct _Thread_Control *started)
Task start extension.
Definition: userext.h:109
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:82
User_extensions_thread_terminate_extension rtems_task_terminate_extension
%
Definition: extension.h:249
User_extensions_thread_create_extension rtems_task_create_extension
%
Definition: extension.h:195
rtems_status_code rtems_extension_delete(rtems_id id)
%
rtems_status_code rtems_extension_create(rtems_name name, const rtems_extensions_table *extension_table, rtems_id *id)
%
Internal_errors_Source rtems_fatal_source
%
Definition: extension.h:141
Internal_errors_t rtems_fatal_code
%
Definition: extension.h:132
User_extensions_thread_restart_extension rtems_task_restart_extension
%
Definition: extension.h:222
Objects_Id rtems_id
Values of this type identify an RTEMS object.
Definition: types.h:99
User_extensions_thread_begin_extension rtems_task_begin_extension
%
Definition: extension.h:186
void(* User_extensions_thread_terminate_extension)(struct _Thread_Control *terminated)
Task termination extension.
Definition: userext.h:223
User extension table.
Definition: userext.h:230
rtems_status_code rtems_extension_ident(rtems_name name, rtems_id *id)
Identifies an extension set object by the specified object name.
User_extensions_thread_exitted_extension rtems_task_exitted_extension
%
Definition: extension.h:213
void(* User_extensions_thread_exitted_extension)(struct _Thread_Control *executing)
Task exitted extension.
Definition: userext.h:183