RTEMS
6.3
Toggle main menu visibility
Loading...
Searching...
No Matches
cpukit
include
rtems
score
userext.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: BSD-2-Clause */
2
12
13
/*
14
* COPYRIGHT (c) 1989-2009.
15
* On-Line Applications Research Corporation (OAR).
16
*
17
* Redistribution and use in source and binary forms, with or without
18
* modification, are permitted provided that the following conditions
19
* are met:
20
* 1. Redistributions of source code must retain the above copyright
21
* notice, this list of conditions and the following disclaimer.
22
* 2. Redistributions in binary form must reproduce the above copyright
23
* notice, this list of conditions and the following disclaimer in the
24
* documentation and/or other materials provided with the distribution.
25
*
26
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
27
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
30
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36
* POSSIBILITY OF SUCH DAMAGE.
37
*/
38
39
#ifndef _RTEMS_SCORE_USEREXT_H
40
#define _RTEMS_SCORE_USEREXT_H
41
42
#include <
rtems/score/interr.h
>
43
44
#ifdef __cplusplus
45
extern
"C"
{
46
#endif
47
48
struct
_Thread_Control
;
49
62
92
typedef
bool ( *
User_extensions_thread_create_extension
)(
93
struct
_Thread_Control
*executing,
94
struct
_Thread_Control
*created
95
);
96
112
typedef
void( *
User_extensions_thread_delete_extension
)(
113
struct
_Thread_Control
*executing,
114
struct
_Thread_Control
*deleted
115
);
116
132
typedef
void( *
User_extensions_thread_start_extension
)(
133
struct
_Thread_Control
*executing,
134
struct
_Thread_Control
*started
135
);
136
154
typedef
void( *
User_extensions_thread_restart_extension
)(
155
struct
_Thread_Control
*executing,
156
struct
_Thread_Control
*restarted
157
);
158
177
typedef
void( *
User_extensions_thread_switch_extension
)(
178
struct
_Thread_Control
*executing,
179
struct
_Thread_Control
*heir
180
);
181
192
typedef
void( *
User_extensions_thread_begin_extension
)(
193
struct
_Thread_Control
*executing
194
);
195
206
typedef
void( *
User_extensions_thread_exitted_extension
)(
207
struct
_Thread_Control
*executing
208
);
209
224
typedef
void( *
User_extensions_fatal_extension
)(
225
Internal_errors_Source
source,
226
bool
always_set_to_false,
227
Internal_errors_t
code
228
);
229
246
typedef
void( *
User_extensions_thread_terminate_extension
)(
247
struct
_Thread_Control
*terminated
248
);
249
253
typedef
struct
{
254
User_extensions_thread_create_extension
thread_create;
255
User_extensions_thread_start_extension
thread_start;
256
User_extensions_thread_restart_extension
thread_restart;
257
User_extensions_thread_delete_extension
thread_delete;
258
User_extensions_thread_switch_extension
thread_switch;
259
User_extensions_thread_begin_extension
thread_begin;
260
User_extensions_thread_exitted_extension
thread_exitted;
261
User_extensions_fatal_extension
fatal;
262
User_extensions_thread_terminate_extension
thread_terminate;
263
}
User_extensions_Table
;
264
266
267
#ifdef __cplusplus
268
}
269
#endif
270
271
#endif
272
/* end of include file */
Internal_errors_Source
Internal_errors_Source
This type lists the possible sources from which an error can be reported.
Definition
interr.h:63
User_extensions_thread_terminate_extension
void(*) User_extensions_thread_terminate_extension(struct _Thread_Control *terminated)
Task termination extension.
Definition
userext.h:246
User_extensions_thread_start_extension
void(*) User_extensions_thread_start_extension(struct _Thread_Control *executing, struct _Thread_Control *started)
Task start extension.
Definition
userext.h:132
User_extensions_thread_delete_extension
void(*) User_extensions_thread_delete_extension(struct _Thread_Control *executing, struct _Thread_Control *deleted)
Task delete extension.
Definition
userext.h:112
User_extensions_fatal_extension
void(*) User_extensions_fatal_extension(Internal_errors_Source source, bool always_set_to_false, Internal_errors_t code)
Fatal error extension.
Definition
userext.h:224
User_extensions_thread_restart_extension
void(*) User_extensions_thread_restart_extension(struct _Thread_Control *executing, struct _Thread_Control *restarted)
Task restart extension.
Definition
userext.h:154
User_extensions_thread_create_extension
bool(*) User_extensions_thread_create_extension(struct _Thread_Control *executing, struct _Thread_Control *created)
Task create extension.
Definition
userext.h:92
User_extensions_thread_switch_extension
void(*) User_extensions_thread_switch_extension(struct _Thread_Control *executing, struct _Thread_Control *heir)
Task switch extension.
Definition
userext.h:177
User_extensions_thread_begin_extension
void(*) User_extensions_thread_begin_extension(struct _Thread_Control *executing)
Task begin extension.
Definition
userext.h:192
User_extensions_thread_exitted_extension
void(*) User_extensions_thread_exitted_extension(struct _Thread_Control *executing)
Task exitted extension.
Definition
userext.h:206
interr.h
This header file provides the interfaces of the Internal Error Handler.
User_extensions_Table
User extension table.
Definition
userext.h:253
_Thread_Control
Definition
thread.h:837
code
Definition
inftrees.h:24
Generated by
1.18.0