@@ -796,23 +796,26 @@ HWLOC_DECLSPEC int hwloc_topology_get_depth(hwloc_topology_t __hwloc_restrict to
796
796
797
797
/** \brief Returns the depth of objects of type \p type.
798
798
*
799
- * If no object of this type is present on the underlying architecture, or if
800
- * the OS doesn't provide this kind of information, the function returns
801
- * ::HWLOC_TYPE_DEPTH_UNKNOWN.
799
+ * \return The depth of objects of type \p type.
802
800
*
803
- * If type is absent but a similar type is acceptable, see also
804
- * hwloc_get_type_or_below_depth() and hwloc_get_type_or_above_depth().
805
- *
806
- * If ::HWLOC_OBJ_GROUP is given, the function may return ::HWLOC_TYPE_DEPTH_MULTIPLE
807
- * if multiple levels of Groups exist.
808
- *
809
- * If a NUMA node, I/O or Misc object type is given, the function returns a virtual
810
- * value because these objects are stored in special levels that are not CPU-related.
801
+ * \return A negative virtual depth if a NUMA node, I/O or Misc object type is given.
802
+ * These objects are stored in special levels that are not CPU-related.
811
803
* This virtual depth may be passed to other hwloc functions such as
812
804
* hwloc_get_obj_by_depth() but it should not be considered as an actual
813
805
* depth by the application. In particular, it should not be compared with
814
806
* any other object depth or with the entire topology depth.
815
- * \sa hwloc_get_memory_parents_depth().
807
+ *
808
+ * \return ::HWLOC_TYPE_DEPTH_UNKNOWN
809
+ * if no object of this type is present on the underlying architecture,
810
+ * or if the OS doesn't provide this kind of information.
811
+ *
812
+ * \return ::HWLOC_TYPE_DEPTH_MULTIPLE if type ::HWLOC_OBJ_GROUP is given
813
+ * and multiple levels of Groups exist.
814
+ *
815
+ * \note If the type is absent but a similar type is acceptable, see also
816
+ * hwloc_get_type_or_below_depth() and hwloc_get_type_or_above_depth().
817
+ *
818
+ * \sa hwloc_get_memory_parents_depth() for managing the depth of memory objects.
816
819
*
817
820
* \sa hwloc_get_type_depth_with_attr() for disambiguating cases where
818
821
* ::HWLOC_TYPE_DEPTH_MULTIPLE is returned.
0 commit comments