RTEMS 6.1-rc1
taskmp.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
12/* COPYRIGHT (c) 1989-2013.
13 * 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#ifndef _RTEMS_RTEMS_TASKMP_H
38#define _RTEMS_RTEMS_TASKMP_H
39
40#ifndef _RTEMS_RTEMS_TASKSIMPL_H
41# error "Never use <rtems/rtems/taskmp.h> directly; include <rtems/rtems/tasksimpl.h> instead."
42#endif
43
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
66typedef enum {
67 RTEMS_TASKS_MP_ANNOUNCE_CREATE = 0,
68 RTEMS_TASKS_MP_ANNOUNCE_DELETE = 1,
69 RTEMS_TASKS_MP_SUSPEND_REQUEST = 2,
70 RTEMS_TASKS_MP_SUSPEND_RESPONSE = 3,
71 RTEMS_TASKS_MP_RESUME_REQUEST = 4,
72 RTEMS_TASKS_MP_RESUME_RESPONSE = 5,
73 RTEMS_TASKS_MP_SET_PRIORITY_REQUEST = 6,
74 RTEMS_TASKS_MP_SET_PRIORITY_RESPONSE = 7,
76
87 Objects_Id task_id,
88 rtems_name name
89);
90
95 rtems_id id,
96 rtems_task_priority new_priority,
97 rtems_task_priority *old_priority
98);
99
104
109
121/*
122 * _RTEMS_tasks_MP_Send_extract_proxy
123 *
124 * This routine is invoked when a task is deleted and it
125 * has a proxy which must be removed from a thread queue and
126 * the remote node must be informed of this.
127 *
128 * This routine is not needed since there are no objects
129 * deleted by this manager.
130 *
131 */
132
133#ifdef __cplusplus
134}
135#endif
136
139#endif
140/* end of file */
rtems_status_code
This enumeration provides status codes for directives of the Classic API.
Definition: status.h:85
uint32_t rtems_name
This type represents Classic API object names.
Definition: types.h:226
uint32_t rtems_task_priority
This integer type represents task priorities of the Classic API.
Definition: types.h:257
Objects_Id rtems_id
This type represents RTEMS object identifiers.
Definition: types.h:94
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:143
RTEMS_tasks_MP_Remote_operations
Definition: taskmp.h:66
rtems_status_code _RTEMS_tasks_MP_Suspend(rtems_id id)
Issues a remote rtems_task_suspend() request.
Definition: taskmp.c:165
rtems_status_code _RTEMS_tasks_MP_Resume(rtems_id id)
Issues a remote rtems_task_resume() request.
Definition: taskmp.c:181
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:87
uint32_t Objects_Id
Definition: object.h:101
This header file provides interfaces of the MPCI Handler which are only used by the implementation.