File: hwloc_obj.3

package info (click to toggle)
hwloc 1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,704 kB
  • ctags: 2,792
  • sloc: ansic: 12,508; sh: 10,481; makefile: 818; xml: 334; csh: 138; php: 8
file content (263 lines) | stat: -rw-r--r-- 8,917 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
.TH "hwloc_obj" 3 "20 Jul 2010" "Version 1.0.2" "Hardware Locality (hwloc)" \" -*- nroff -*-
.ad l
.nh
.SH NAME
hwloc_obj \- 
.PP
Structure of a topology object.  

.SH SYNOPSIS
.br
.PP
.PP
\fC#include <hwloc.h>\fP
.SS "Data Fields"

.in +1c
.ti -1c
.RI "\fBhwloc_obj_type_t\fP \fBtype\fP"
.br
.RI "\fIType of object. \fP"
.ti -1c
.RI "unsigned \fBos_index\fP"
.br
.RI "\fIOS-provided physical index number. \fP"
.ti -1c
.RI "char * \fBname\fP"
.br
.RI "\fIObject description if any. \fP"
.ti -1c
.RI "struct \fBhwloc_obj_memory_s\fP \fBmemory\fP"
.br
.RI "\fIMemory attributes. \fP"
.ti -1c
.RI "union \fBhwloc_obj_attr_u\fP * \fBattr\fP"
.br
.RI "\fIObject type-specific Attributes. \fP"
.ti -1c
.RI "unsigned \fBdepth\fP"
.br
.RI "\fIVertical index in the hierarchy. \fP"
.ti -1c
.RI "unsigned \fBlogical_index\fP"
.br
.RI "\fIHorizontal index in the whole list of similar objects, could be a 'cousin_rank' since it's the rank within the 'cousin' list below. \fP"
.ti -1c
.RI "signed \fBos_level\fP"
.br
.RI "\fIOS-provided physical level, -1 if unknown or meaningless. \fP"
.ti -1c
.RI "struct \fBhwloc_obj\fP * \fBnext_cousin\fP"
.br
.RI "\fINext object of same type. \fP"
.ti -1c
.RI "struct \fBhwloc_obj\fP * \fBprev_cousin\fP"
.br
.RI "\fIPrevious object of same type. \fP"
.ti -1c
.RI "struct \fBhwloc_obj\fP * \fBparent\fP"
.br
.RI "\fIParent, \fCNULL\fP if root (system object). \fP"
.ti -1c
.RI "unsigned \fBsibling_rank\fP"
.br
.RI "\fIIndex in parent's \fCchildren\fP[] array. \fP"
.ti -1c
.RI "struct \fBhwloc_obj\fP * \fBnext_sibling\fP"
.br
.RI "\fINext object below the same parent. \fP"
.ti -1c
.RI "struct \fBhwloc_obj\fP * \fBprev_sibling\fP"
.br
.RI "\fIPrevious object below the same parent. \fP"
.ti -1c
.RI "unsigned \fBarity\fP"
.br
.RI "\fINumber of children. \fP"
.ti -1c
.RI "struct \fBhwloc_obj\fP ** \fBchildren\fP"
.br
.RI "\fIChildren, \fCchildren\fP[0 .. arity -1]. \fP"
.ti -1c
.RI "struct \fBhwloc_obj\fP * \fBfirst_child\fP"
.br
.RI "\fIFirst child. \fP"
.ti -1c
.RI "struct \fBhwloc_obj\fP * \fBlast_child\fP"
.br
.RI "\fILast child. \fP"
.ti -1c
.RI "void * \fBuserdata\fP"
.br
.RI "\fIApplication-given private data pointer, initialized to \fCNULL\fP, use it as you wish. \fP"
.ti -1c
.RI "\fBhwloc_cpuset_t\fP \fBcpuset\fP"
.br
.RI "\fICPUs covered by this object. \fP"
.ti -1c
.RI "\fBhwloc_cpuset_t\fP \fBcomplete_cpuset\fP"
.br
.RI "\fIThe complete CPU set of logical processors of this object,. \fP"
.ti -1c
.RI "\fBhwloc_cpuset_t\fP \fBonline_cpuset\fP"
.br
.RI "\fIThe CPU set of online logical processors. \fP"
.ti -1c
.RI "\fBhwloc_cpuset_t\fP \fBallowed_cpuset\fP"
.br
.RI "\fIThe CPU set of allowed logical processors. \fP"
.ti -1c
.RI "\fBhwloc_cpuset_t\fP \fBnodeset\fP"
.br
.RI "\fINUMA nodes covered by this object or containing this object. \fP"
.ti -1c
.RI "\fBhwloc_cpuset_t\fP \fBcomplete_nodeset\fP"
.br
.RI "\fIThe complete NUMA node set of this object,. \fP"
.ti -1c
.RI "\fBhwloc_cpuset_t\fP \fBallowed_nodeset\fP"
.br
.RI "\fIThe set of allowed NUMA memory nodes. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Structure of a topology object. 

Applications mustn't modify any field except userdata . 
.SH "Field Documentation"
.PP 
.SS "\fBhwloc_cpuset_t\fP \fBhwloc_obj::allowed_cpuset\fP"
.PP
The CPU set of allowed logical processors. This includes the CPUs contained in this object which are allowed for binding, i.e. passing them to the hwloc binding functions should not return permission errors. This is usually restricted by administration rules. Some of them may however be offline so binding to them may still not be possible, see online_cpuset.
.PP
\fBNote:\fP
.RS 4
Its value must not be changed, hwloc_cpuset_dup must be used instead. 
.RE
.PP

.SS "\fBhwloc_cpuset_t\fP \fBhwloc_obj::allowed_nodeset\fP"
.PP
The set of allowed NUMA memory nodes. This includes the NUMA memory nodes contained in this object which are allowed for memory allocation, i.e. passing them to NUMA node-directed memory allocation should not return permission errors. This is usually restricted by administration rules.
.PP
\fBNote:\fP
.RS 4
Its value must not be changed, hwloc_cpuset_dup must be used instead. 
.RE
.PP

.SS "unsigned \fBhwloc_obj::arity\fP"
.PP
Number of children. 
.SS "union \fBhwloc_obj_attr_u\fP* \fBhwloc_obj::attr\fP"
.PP
Object type-specific Attributes. 
.SS "struct \fBhwloc_obj\fP** \fBhwloc_obj::children\fP"
.PP
Children, \fCchildren\fP[0 .. arity -1]. 
.SS "\fBhwloc_cpuset_t\fP \fBhwloc_obj::complete_cpuset\fP"
.PP
The complete CPU set of logical processors of this object,. This includes not only the same as the cpuset field, but also the CPUs for which topology information is unknown or incomplete, and the CPUs that are ignored when the HWLOC_TOPOLOGY_FLAG_WHOLE_SYSTEM flag is not set. Thus no corresponding PU object may be found in the topology, because the precise position is undefined. It is however known that it would be somewhere under this object.
.PP
\fBNote:\fP
.RS 4
Its value must not be changed, hwloc_cpuset_dup must be used instead. 
.RE
.PP

.SS "\fBhwloc_cpuset_t\fP \fBhwloc_obj::complete_nodeset\fP"
.PP
The complete NUMA node set of this object,. This includes not only the same as the nodeset field, but also the NUMA nodes for which topology information is unknown or incomplete, and the nodes that are ignored when the HWLOC_TOPOLOGY_FLAG_WHOLE_SYSTEM flag is not set. Thus no corresponding NODE object may be found in the topology, because the precise position is undefined. It is however known that it would be somewhere under this object.
.PP
\fBNote:\fP
.RS 4
Its value must not be changed, hwloc_cpuset_dup must be used instead. 
.RE
.PP

.SS "\fBhwloc_cpuset_t\fP \fBhwloc_obj::cpuset\fP"
.PP
CPUs covered by this object. This is the set of CPUs for which there are PU objects in the topology under this object, i.e. which are known to be physically contained in this object and known how (the children path between this object and the PU objects).
.PP
If the HWLOC_TOPOLOGY_FLAG_WHOLE_SYSTEM configuration flag is set, some of these CPUs may be offline, or not allowed for binding, see online_cpuset and allowed_cpuset.
.PP
\fBNote:\fP
.RS 4
Its value must not be changed, hwloc_cpuset_dup must be used instead. 
.RE
.PP

.SS "unsigned \fBhwloc_obj::depth\fP"
.PP
Vertical index in the hierarchy. 
.SS "struct \fBhwloc_obj\fP* \fBhwloc_obj::first_child\fP"
.PP
First child. 
.SS "struct \fBhwloc_obj\fP* \fBhwloc_obj::last_child\fP"
.PP
Last child. 
.SS "unsigned \fBhwloc_obj::logical_index\fP"
.PP
Horizontal index in the whole list of similar objects, could be a 'cousin_rank' since it's the rank within the 'cousin' list below. 
.SS "struct \fBhwloc_obj_memory_s\fP \fBhwloc_obj::memory\fP"
.PP
Memory attributes. 
.SS "char* \fBhwloc_obj::name\fP"
.PP
Object description if any. 
.SS "struct \fBhwloc_obj\fP* \fBhwloc_obj::next_cousin\fP"
.PP
Next object of same type. 
.SS "struct \fBhwloc_obj\fP* \fBhwloc_obj::next_sibling\fP"
.PP
Next object below the same parent. 
.SS "\fBhwloc_cpuset_t\fP \fBhwloc_obj::nodeset\fP"
.PP
NUMA nodes covered by this object or containing this object. This is the set of NUMA nodes for which there are NODE objects in the topology under or above this object, i.e. which are known to be physically contained in this object or containing it and known how (the children path between this object and the NODE objects).
.PP
If the HWLOC_TOPOLOGY_FLAG_WHOLE_SYSTEM configuration flag is set, some of these nodes may not be allowed for allocation, see allowed_nodeset.
.PP
\fBNote:\fP
.RS 4
Its value must not be changed, hwloc_cpuset_dup must be used instead. 
.RE
.PP

.SS "\fBhwloc_cpuset_t\fP \fBhwloc_obj::online_cpuset\fP"
.PP
The CPU set of online logical processors. This includes the CPUs contained in this object that are online, i.e. draw power and can execute threads. It may however not be allowed to bind to them due to administration rules, see allowed_cpuset.
.PP
\fBNote:\fP
.RS 4
Its value must not be changed, hwloc_cpuset_dup must be used instead. 
.RE
.PP

.SS "unsigned \fBhwloc_obj::os_index\fP"
.PP
OS-provided physical index number. 
.SS "signed \fBhwloc_obj::os_level\fP"
.PP
OS-provided physical level, -1 if unknown or meaningless. 
.SS "struct \fBhwloc_obj\fP* \fBhwloc_obj::parent\fP"
.PP
Parent, \fCNULL\fP if root (system object). 
.SS "struct \fBhwloc_obj\fP* \fBhwloc_obj::prev_cousin\fP"
.PP
Previous object of same type. 
.SS "struct \fBhwloc_obj\fP* \fBhwloc_obj::prev_sibling\fP"
.PP
Previous object below the same parent. 
.SS "unsigned \fBhwloc_obj::sibling_rank\fP"
.PP
Index in parent's \fCchildren\fP[] array. 
.SS "\fBhwloc_obj_type_t\fP \fBhwloc_obj::type\fP"
.PP
Type of object. 
.SS "void* \fBhwloc_obj::userdata\fP"
.PP
Application-given private data pointer, initialized to \fCNULL\fP, use it as you wish. 

.SH "Author"
.PP 
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.