RTEMS 6.1-rc2
Loading...
Searching...
No Matches
partmp.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_PARTMP_H
38#define _RTEMS_RTEMS_PARTMP_H
39
40#ifndef _RTEMS_RTEMS_PARTIMPL_H
41# error "Never use <rtems/rtems/partmp.h> directly; include <rtems/rtems/partimpl.h> instead."
42#endif
43
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
66typedef enum {
67 PARTITION_MP_ANNOUNCE_CREATE = 0,
68 PARTITION_MP_ANNOUNCE_DELETE = 1,
69 PARTITION_MP_EXTRACT_PROXY = 2,
70 PARTITION_MP_GET_BUFFER_REQUEST = 3,
71 PARTITION_MP_GET_BUFFER_RESPONSE = 4,
72 PARTITION_MP_RETURN_BUFFER_REQUEST = 5,
73 PARTITION_MP_RETURN_BUFFER_RESPONSE = 6
75
80typedef struct {
81 rtems_packet_prefix Prefix;
83 rtems_name name;
84 void *buffer;
85 Objects_Id proxy_id;
87
88static inline bool _Partition_MP_Is_remote( Objects_Id id )
89{
91}
92
103 Objects_Id partition_id,
104 rtems_name name,
105 Objects_Id proxy_id
106);
107
112 rtems_id id,
113 void **buffer
114);
115
120 rtems_id id,
121 void *buffer
122);
123
124/*
125 * @brief Partition_MP_Send_object_was_deleted
126 *
127 * This routine is invoked indirectly by the thread queue
128 * when a proxy has been removed from the thread queue and
129 * the remote node must be informed of this.
130 *
131 * This routine is not needed by the Partition since a partition
132 * cannot be deleted when buffers are in use.
133 */
134
135#ifdef __cplusplus
136}
137#endif
138
141#endif
142/* 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
Objects_Id rtems_id
This type represents RTEMS object identifiers.
Definition: types.h:94
rtems_status_code _Partition_MP_Return_buffer(rtems_id id, void *buffer)
Issues a remote rtems_partition_return_buffer() request.
Definition: partmp.c:176
Partition_MP_Remote_operations
Definition: partmp.h:66
rtems_status_code _Partition_MP_Get_buffer(rtems_id id, void **buffer)
Issues a remote rtems_partition_get_buffer() request.
Definition: partmp.c:163
void _Partition_MP_Send_process_packet(Partition_MP_Remote_operations operation, Objects_Id partition_id, rtems_name name, Objects_Id proxy_id)
Partition_MP_Send_process_packet.
Definition: partmp.c:77
Objects_Information _Partition_Information
The Partition Manager objects information is used to manage the objects of this class.
bool _Objects_MP_Is_remote(Objects_Id id, const Objects_Information *information)
Checks if the object identifier is in the global object identifier cache of the specified object info...
Definition: objectmp.c:368
uint32_t Objects_Id
Definition: object.h:101
This header file provides interfaces of the MPCI Handler which are only used by the implementation.
Definition: partmp.h:80