RTEMS CPU Kit with SuperCore  4.11.2
userext.h
Go to the documentation of this file.
1 
9 /*
10  * COPYRIGHT (c) 1989-2009.
11  * On-Line Applications Research Corporation (OAR).
12  *
13  * The license and distribution terms for this file may be
14  * found in the file LICENSE in this distribution or at
15  * http://www.rtems.org/license/LICENSE.
16  */
17 
18 #ifndef _RTEMS_SCORE_USEREXT_H
19 #define _RTEMS_SCORE_USEREXT_H
20 
21 #include <rtems/score/interr.h>
22 #include <rtems/score/chain.h>
23 #include <rtems/score/thread.h>
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 typedef void User_extensions_routine RTEMS_COMPILER_DEPRECATED_ATTRIBUTE;
30 
72  Thread_Control *executing,
73  Thread_Control *created
74 );
75 
92  Thread_Control *executing,
93  Thread_Control *deleted
94 );
95 
112  Thread_Control *executing,
113  Thread_Control *started
114 );
115 
134  Thread_Control *executing,
135  Thread_Control *restarted
136 );
137 
157  Thread_Control *executing,
158  Thread_Control *heir
159 );
160 
172  Thread_Control *executing
173 );
174 
186  Thread_Control *executing
187 );
188 
204  Internal_errors_Source source,
205  bool is_internal,
206  Internal_errors_t code
207 );
208 
226  Thread_Control *terminated
227 );
228 
232 typedef struct {
243 
249 typedef struct {
250  Chain_Node Node;
253 
260 typedef struct {
261  Chain_Node Node;
263  User_extensions_Table Callouts;
265 
268 #ifdef __cplusplus
269 }
270 #endif
271 
272 #endif
273 /* end of include file */
Constants and Prototypes Related to the Internal Error Handler.
Manages the switch callouts.
Definition: userext.h:249
This is used to manage each element (node) which is placed on a chain.
Definition: chain.h:65
void(* User_extensions_thread_begin_extension)(Thread_Control *executing)
Task begin extension.
Definition: userext.h:171
void(* User_extensions_thread_delete_extension)(Thread_Control *executing, Thread_Control *deleted)
Task delete extension.
Definition: userext.h:91
void(* User_extensions_thread_exitted_extension)(Thread_Control *executing)
Task exitted extension.
Definition: userext.h:185
void(* User_extensions_thread_restart_extension)(Thread_Control *executing, Thread_Control *restarted)
Task restart extension.
Definition: userext.h:133
Constants and Structures Related with the Thread Control Block.
void(* User_extensions_thread_start_extension)(Thread_Control *executing, Thread_Control *started)
Task start extension.
Definition: userext.h:111
This structure defines the Thread Control Block (TCB).
Definition: thread.h:671
void(* User_extensions_fatal_extension)(Internal_errors_Source source, bool is_internal, Internal_errors_t code)
Fatal error extension.
Definition: userext.h:203
void(* User_extensions_thread_terminate_extension)(Thread_Control *terminated)
Task termination extension.
Definition: userext.h:225
void(* User_extensions_thread_switch_extension)(Thread_Control *executing, Thread_Control *heir)
Task switch extension.
Definition: userext.h:156
#define RTEMS_COMPILER_DEPRECATED_ATTRIBUTE
Instructs the compiler to issue a warning whenever a variable or function with this attribute will be...
Definition: basedefs.h:186
Definition: inftrees.h:25
bool(* User_extensions_thread_create_extension)(Thread_Control *executing, Thread_Control *created)
Task create extension.
Definition: userext.h:71
Chain Handler API.
User extension table.
Definition: userext.h:232
Manages each user extension set.
Definition: userext.h:260
Internal_errors_Source
This type lists the possible sources from which an error can be reported.
Definition: interr.h:45