RTEMS
partdata.h
Go to the documentation of this file.
1 
9 /* COPYRIGHT (c) 1989-2008.
10  * On-Line Applications Research Corporation (OAR).
11  *
12  * The license and distribution terms for this file may be
13  * found in the file LICENSE in this distribution or at
14  * http://www.rtems.org/license/LICENSE.
15  */
16 
17 #ifndef _RTEMS_RTEMS_PARTDATA_H
18 #define _RTEMS_RTEMS_PARTDATA_H
19 
20 #include <rtems/rtems/part.h>
21 #include <rtems/score/isrlock.h>
22 #include <rtems/score/objectdata.h>
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
37 typedef struct {
41  ISR_LOCK_MEMBER( Lock )
43  void *starting_address;
45  uintptr_t length;
47  size_t buffer_size;
49  rtems_attribute attribute_set;
51  uintptr_t number_of_used_blocks;
53  Chain_Control Memory;
55 
60 
61 #if defined(RTEMS_MULTIPROCESSING)
62 
69 void _Partition_MP_Send_extract_proxy (
70  Thread_Control *the_thread,
71  Objects_Id id
72 );
73 #endif
74 
84 #define PARTITION_INFORMATION_DEFINE( max ) \
85  OBJECTS_INFORMATION_DEFINE( \
86  _Partition, \
87  OBJECTS_CLASSIC_API, \
88  OBJECTS_RTEMS_PARTITIONS, \
89  Partition_Control, \
90  max, \
91  OBJECTS_NO_STRING_NAME, \
92  _Partition_MP_Send_extract_proxy \
93  )
94 
97 #ifdef __cplusplus
98 }
99 #endif
100 
101 #endif
102 /* end of include file */
Objects_Control Object
Definition: partdata.h:39
Objects_Information _Partition_Information
The Classic Partition objects information.
Definition: part.c:47
Object Handler Data Structures.
#define ISR_LOCK_MEMBER(_designator)
Defines an ISR lock member.
Definition: isrlock.h:87
The information structure used to manage each API class of objects.
Definition: objectdata.h:176
uint32_t rtems_attribute
This type is used to represent Classic API attributes.
Definition: attr.h:91
uint32_t Objects_Id
Definition: object.h:80
ISR Locks.
This header file defines the Partition Manager API.