1 | /* signal.h |
---|
2 | * |
---|
3 | * This include file contains all the constants and structures associated |
---|
4 | * with the Signal Manager. This manager provides capabilities required |
---|
5 | * for asynchronous communication between tasks via signal sets. |
---|
6 | * |
---|
7 | * Directives provided are: |
---|
8 | * |
---|
9 | * + establish an asynchronous signal routine |
---|
10 | * + send a signal set to a task |
---|
11 | * |
---|
12 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
13 | * On-Line Applications Research Corporation (OAR). |
---|
14 | * All rights assigned to U.S. Government, 1994. |
---|
15 | * |
---|
16 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
17 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
18 | * notice must appear in all copies of this file and its derivatives. |
---|
19 | * |
---|
20 | * $Id$ |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef __RTEMS_SIGNAL_h |
---|
24 | #define __RTEMS_SIGNAL_h |
---|
25 | |
---|
26 | #ifdef __cplusplus |
---|
27 | extern "C" { |
---|
28 | #endif |
---|
29 | |
---|
30 | #include <rtems/asr.h> |
---|
31 | #include <rtems/modes.h> |
---|
32 | #include <rtems/object.h> |
---|
33 | #include <rtems/status.h> |
---|
34 | #include <rtems/types.h> |
---|
35 | |
---|
36 | /* |
---|
37 | * rtems_signal_catch |
---|
38 | * |
---|
39 | * DESCRIPTION: |
---|
40 | * |
---|
41 | * This routine implements the rtems_signal_catch directive. This directive |
---|
42 | * is used to establish asr_handler as the Asynchronous Signal Routine |
---|
43 | * (RTEMS_ASR) for the calling task. The asr_handler will execute with a |
---|
44 | * mode of mode_set. |
---|
45 | */ |
---|
46 | |
---|
47 | rtems_status_code rtems_signal_catch( |
---|
48 | rtems_asr_entry asr_handler, |
---|
49 | rtems_mode mode_set |
---|
50 | ); |
---|
51 | |
---|
52 | /* |
---|
53 | * rtems_signal_send |
---|
54 | * |
---|
55 | * DESCRIPTION: |
---|
56 | * |
---|
57 | * This routine implements the rtems_signal_send directive. This directive |
---|
58 | * sends the signal_set to the task specified by ID. |
---|
59 | */ |
---|
60 | |
---|
61 | rtems_status_code rtems_signal_send( |
---|
62 | Objects_Id id, |
---|
63 | rtems_signal_set signal_set |
---|
64 | ); |
---|
65 | |
---|
66 | #include <rtems/signalmp.h> |
---|
67 | |
---|
68 | #ifdef __cplusplus |
---|
69 | } |
---|
70 | #endif |
---|
71 | |
---|
72 | #endif |
---|
73 | /* end of include file */ |
---|