RTEMS  5.0.0
taskmp.h
Go to the documentation of this file.
1 
10 /* COPYRIGHT (c) 1989-2013.
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_RTEMS_TASKMP_H
19 #define _RTEMS_RTEMS_TASKMP_H
20 
21 #ifndef _RTEMS_RTEMS_TASKSIMPL_H
22 # error "Never use <rtems/rtems/taskmp.h> directly; include <rtems/rtems/tasksimpl.h> instead."
23 #endif
24 
25 #include <rtems/score/mpciimpl.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
45 typedef enum {
46  RTEMS_TASKS_MP_ANNOUNCE_CREATE = 0,
47  RTEMS_TASKS_MP_ANNOUNCE_DELETE = 1,
48  RTEMS_TASKS_MP_SUSPEND_REQUEST = 2,
49  RTEMS_TASKS_MP_SUSPEND_RESPONSE = 3,
50  RTEMS_TASKS_MP_RESUME_REQUEST = 4,
51  RTEMS_TASKS_MP_RESUME_RESPONSE = 5,
52  RTEMS_TASKS_MP_SET_PRIORITY_REQUEST = 6,
53  RTEMS_TASKS_MP_SET_PRIORITY_RESPONSE = 7,
55 
66  Objects_Id task_id,
67  rtems_name name
68 );
69 
74  rtems_id id,
75  rtems_task_priority new_priority,
76  rtems_task_priority *old_priority
77 );
78 
83 
88 
96  rtems_packet_prefix *the_packet_prefix
97 );
98 
110 /*
111  * _RTEMS_tasks_MP_Send_extract_proxy
112  *
113  * This routine is invoked when a task is deleted and it
114  * has a proxy which must be removed from a thread queue and
115  * the remote node must be informed of this.
116  *
117  * This routine is not needed since there are no objects
118  * deleted by this manager.
119  *
120  */
121 
122 #ifdef __cplusplus
123 }
124 #endif
125 
128 #endif
129 /* end of file */
rtems_status_code _RTEMS_tasks_MP_Set_priority(rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority)
Issues a remote rtems_task_set_priority() request.
Definition: taskmp.c:121
rtems_status_code _RTEMS_tasks_MP_Resume(rtems_id id)
Issues a remote rtems_task_resume() request.
Definition: taskmp.c:159
uint32_t rtems_name
Classic API object name type.
Definition: types.h:77
rtems_status_code _RTEMS_tasks_MP_Suspend(rtems_id id)
Issues a remote rtems_task_suspend() request.
Definition: taskmp.c:143
rtems_status_code
Classic API Status.
Definition: status.h:43
void _RTEMS_tasks_MP_Process_packet(rtems_packet_prefix *the_packet_prefix)
_RTEMS_tasks_MP_Process_packet
Definition: taskmp.c:224
Objects_Id rtems_id
Used to manage and manipulate RTEMS object identifiers.
Definition: types.h:83
void _RTEMS_tasks_MP_Send_process_packet(RTEMS_tasks_MP_Remote_operations operation, Objects_Id task_id, rtems_name name)
RTEMS Tasks MP Send Process Packet.
Definition: taskmp.c:65
RTEMS_tasks_MP_Remote_operations
Definition: taskmp.h:45
uint32_t Objects_Id
Definition: object.h:75
MPCI Layer Implementation.
uint32_t rtems_task_priority
Definition: tasks.h:54