27 #ifndef OPAL_DSS_TYPES_H_
28 #define OPAL_DSS_TYPES_H_
30 #include "opal_config.h"
32 #ifdef OPAL_HAVE_SYS_TIME_H
41 typedef uint8_t opal_data_type_t;
42 #define OPAL_DATA_TYPE_T OPAL_UINT8
43 #define OPAL_DSS_ID_MAX UINT8_MAX
44 #define OPAL_DSS_ID_INVALID OPAL_DSS_ID_MAX
53 #define OPAL_UNDEF (opal_data_type_t) 0
54 #define OPAL_BYTE (opal_data_type_t) 1
55 #define OPAL_BOOL (opal_data_type_t) 2
56 #define OPAL_STRING (opal_data_type_t) 3
57 #define OPAL_SIZE (opal_data_type_t) 4
58 #define OPAL_PID (opal_data_type_t) 5
60 #define OPAL_INT (opal_data_type_t) 6
61 #define OPAL_INT8 (opal_data_type_t) 7
62 #define OPAL_INT16 (opal_data_type_t) 8
63 #define OPAL_INT32 (opal_data_type_t) 9
64 #define OPAL_INT64 (opal_data_type_t) 10
66 #define OPAL_UINT (opal_data_type_t) 11
67 #define OPAL_UINT8 (opal_data_type_t) 12
68 #define OPAL_UINT16 (opal_data_type_t) 13
69 #define OPAL_UINT32 (opal_data_type_t) 14
70 #define OPAL_UINT64 (opal_data_type_t) 15
73 #define OPAL_BYTE_OBJECT (opal_data_type_t) 16
74 #define OPAL_DATA_TYPE (opal_data_type_t) 17
75 #define OPAL_NULL (opal_data_type_t) 18
76 #define OPAL_DATA_VALUE (opal_data_type_t) 19
77 #define OPAL_PSTAT (opal_data_type_t) 20
78 #define OPAL_NODE_STAT (opal_data_type_t) 21
79 #define OPAL_HWLOC_TOPO (opal_data_type_t) 22
81 #define OPAL_DSS_ID_DYNAMIC (opal_data_type_t) 30
84 #define OPAL_VALUE1_GREATER +1
85 #define OPAL_VALUE2_GREATER -1
91 opal_data_type_t type;
96 #define OPAL_DATA_VALUE_EMPTY { OPAL_OBJ_STATIC_INIT(opal_dss_value_t), OPAL_UNDEF, NULL}
99 #define OPAL_PSTAT_MAX_STRING_LEN 32
103 char node[OPAL_PSTAT_MAX_STRING_LEN];
106 char cmd[OPAL_PSTAT_MAX_STRING_LEN];
118 struct timeval sample_time;
137 struct timeval sample_time;
142 #define OPAL_DSS_STRUCTURED true
143 #define OPAL_DSS_UNSTRUCTURED false
149 #define OPAL_DSS_BUFFER_NON_DESC 0x00
150 #define OPAL_DSS_BUFFER_FULLY_DESC 0x01
152 #define OPAL_DSS_BUFFER_TYPE_HTON(h);
153 #define OPAL_DSS_BUFFER_TYPE_NTOH(h);
char * base_ptr
Start of my memory.
Definition: dss_types.h:165
The opal_list_t interface is used to provide a generic doubly-linked list container for Open MPI...
Definition: opal_list.h:98
Definition: dss_types.h:121
size_t bytes_allocated
Number of bytes allocated (starting at base_ptr)
Definition: dss_types.h:174
size_t bytes_used
Number of bytes used by the buffer (i.e., amount of data – including overhead – packed in the buffe...
Definition: dss_types.h:177
opal_object_t parent
First member must be the object's parent.
Definition: dss_types.h:161
Definition: dss_types.h:89
Base object.
Definition: opal_object.h:182
char * unpack_ptr
Where the next data will be unpacked from (within the allocated memory starting as base_ptr) ...
Definition: dss_types.h:171
opal_dss_buffer_type_t type
type of buffer
Definition: dss_types.h:163
Definition: dss_types.h:100
uint8_t opal_dss_buffer_type_t
buffer type
Definition: dss_types.h:148
Structure for holding a buffer to be used with the RML or OOB subsystems.
Definition: dss_types.h:159
Definition: dss_types.h:47
A simple C-language object-oriented system with single inheritance and ownership-based memory managem...
char * pack_ptr
Where the next data will be packed to (within the allocated memory starting at base_ptr) ...
Definition: dss_types.h:168
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_buffer_t)
formalize the declaration