|  | 
        
          | 
      
      
        
          | 
Flags to be given to hwloc_topology_restrict().  
| Enumerator | 
|---|
 | HWLOC_RESTRICT_FLAG_ADAPT_DISTANCES | Adapt distance matrices according to objects being removed during restriction. If this flag is not set, distance matrices are removed.  |  | HWLOC_RESTRICT_FLAG_ADAPT_MISC | 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.  |  | HWLOC_RESTRICT_FLAG_ADAPT_IO | 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.  |  
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 cpuset. This offers a way to add new intermediate levels to the topology hierarchy. cpusetandnamewill be copied to setup the new object attributes.
 Returnsthe newly-created object. 
NULLif the insertion conflicts with the existing topology tree.
 NoteIf namecontains some non-printable characters, they will be dropped when exporting to XML, see hwloc_topology_export_xml().
 
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. namewill be copied to the setup the new object attributes. However, the new leaf object will not have anycpuset.
 Returnsthe newly-created object
 NoteIf namecontains some non-printable characters, they will be dropped when exporting to XML, see hwloc_topology_export_xml().
 
Restrict the topology to the given CPU set.  Topology topologyis modified so as to remove all objects that are not included (or partially included) in the CPU setcpuset. All objects CPU and node sets are restricted accordingly. flagsis a OR'ed set of hwloc_restrict_flags_e.
 NoteThis 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 hwloc_topology_load().
 Returns0 on success.
-1 with errno set to EINVAL if the input cpuset is invalid. The topology is not modified in this case.
-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 hwloc_topology_destroy() or configured and loaded again. 
 |  |  |