.TH "hwlocality_tinker" 3 "Fri Feb 8 2019" "Version 1.11.12" "Hardware Locality (hwloc)" \" -*- nroff -*- .ad l .nh .SH NAME hwlocality_tinker .SH SYNOPSIS .br .PP .SS "Enumerations" .in +1c .ti -1c .RI "enum \fBhwloc_restrict_flags_e\fP { \fBHWLOC_RESTRICT_FLAG_ADAPT_DISTANCES\fP, \fBHWLOC_RESTRICT_FLAG_ADAPT_MISC\fP, \fBHWLOC_RESTRICT_FLAG_ADAPT_IO\fP }" .br .in -1c .SS "Functions" .in +1c .ti -1c .RI "\fBhwloc_obj_t\fP \fBhwloc_topology_insert_misc_object_by_cpuset\fP (\fBhwloc_topology_t\fP topology, \fBhwloc_const_cpuset_t\fP cpuset, const char *name)" .br .ti -1c .RI "\fBhwloc_obj_t\fP \fBhwloc_topology_insert_misc_object_by_parent\fP (\fBhwloc_topology_t\fP topology, \fBhwloc_obj_t\fP parent, const char *name)" .br .ti -1c .RI "int \fBhwloc_topology_restrict\fP (\fBhwloc_topology_t\fP restrict topology, \fBhwloc_const_cpuset_t\fP cpuset, unsigned long flags)" .br .in -1c .SH "Detailed Description" .PP .SH "Enumeration Type Documentation" .PP .SS "enum \fBhwloc_restrict_flags_e\fP" .PP Flags to be given to \fBhwloc_topology_restrict()\fP\&. .PP \fBEnumerator\fP .in +1c .TP \fB\fIHWLOC_RESTRICT_FLAG_ADAPT_DISTANCES \fP\fP Adapt distance matrices according to objects being removed during restriction\&. If this flag is not set, distance matrices are removed\&. .TP \fB\fIHWLOC_RESTRICT_FLAG_ADAPT_MISC \fP\fP Move Misc objects to ancestors if their parents are removed during restriction\&. If this flag is not set, Misc objects are removed when their parents are removed\&. .TP \fB\fIHWLOC_RESTRICT_FLAG_ADAPT_IO \fP\fP Move I/O objects to ancestors if their parents are removed during restriction\&. If this flag is not set, I/O devices and bridges are removed when their parents are removed\&. .SH "Function Documentation" .PP .SS "\fBhwloc_obj_t\fP hwloc_topology_insert_misc_object_by_cpuset (\fBhwloc_topology_t\fP topology, \fBhwloc_const_cpuset_t\fP cpuset, const char * name)" .PP Add a MISC object to the topology\&. A new MISC object will be created and inserted into the topology at the position given by bitmap \fCcpuset\fP\&. This offers a way to add new intermediate levels to the topology hierarchy\&. .PP \fCcpuset\fP and \fCname\fP will be copied to setup the new object attributes\&. .PP \fBReturns:\fP .RS 4 the newly-created object\&. .PP \fCNULL\fP if the insertion conflicts with the existing topology tree\&. .RE .PP \fBNote:\fP .RS 4 If \fCname\fP contains some non-printable characters, they will be dropped when exporting to XML, see \fBhwloc_topology_export_xml()\fP\&. .RE .PP .SS "\fBhwloc_obj_t\fP hwloc_topology_insert_misc_object_by_parent (\fBhwloc_topology_t\fP topology, \fBhwloc_obj_t\fP parent, const char * name)" .PP Add a MISC object as a leaf of the topology\&. A new MISC object will be created and inserted into the topology at the position given by parent\&. It is appended to the list of existing children, without ever adding any intermediate hierarchy level\&. This is useful for annotating the topology without actually changing the hierarchy\&. .PP \fCname\fP will be copied to the setup the new object attributes\&. However, the new leaf object will not have any \fCcpuset\fP\&. .PP \fBReturns:\fP .RS 4 the newly-created object .RE .PP \fBNote:\fP .RS 4 If \fCname\fP contains some non-printable characters, they will be dropped when exporting to XML, see \fBhwloc_topology_export_xml()\fP\&. .RE .PP .SS "int hwloc_topology_restrict (\fBhwloc_topology_t\fP restrict topology, \fBhwloc_const_cpuset_t\fP cpuset, unsigned long flags)" .PP Restrict the topology to the given CPU set\&. Topology \fCtopology\fP is modified so as to remove all objects that are not included (or partially included) in the CPU set \fCcpuset\fP\&. All objects CPU and node sets are restricted accordingly\&. .PP \fCflags\fP is a OR'ed set of \fBhwloc_restrict_flags_e\fP\&. .PP \fBNote:\fP .RS 4 This call may not be reverted by restricting back to a larger cpuset\&. Once dropped during restriction, objects may not be brought back, except by loading another topology with \fBhwloc_topology_load()\fP\&. .RE .PP \fBReturns:\fP .RS 4 0 on success\&. .PP -1 with errno set to EINVAL if the input cpuset is invalid\&. The topology is not modified in this case\&. .PP -1 with errno set to ENOMEM on failure to allocate internal data\&. The topology is reinitialized in this case\&. It should be either destroyed with \fBhwloc_topology_destroy()\fP or configured and loaded again\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code\&.