Skip to content

Commit bc13d5c

Browse files
committed
API: document the linkspeed as runtime-changing
Copy-paste what we had in lstopo.1 and make it appear in the doxygen-generated doc. Signed-off-by: Brice Goglin <[email protected]>
1 parent bc094ea commit bc13d5c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

include/hwloc.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,12 @@ union hwloc_obj_attr_u {
726726
unsigned short class_id;
727727
unsigned short vendor_id, device_id, subvendor_id, subdevice_id;
728728
unsigned char revision;
729-
float linkspeed; /* in GB/s */
729+
float linkspeed; /**< \brief Link speed in GB/s.
730+
* This datarate is the currently configured speed of the entire PCI link
731+
* (sum of the bandwidth of all PCI lanes in that link).
732+
* It may change during execution since some devices are able to
733+
* slow their PCI links down when idle.
734+
*/
730735
} pcidev;
731736
/** \brief Bridge specific Object Attributes */
732737
struct hwloc_bridge_attr_s {

0 commit comments

Comments
 (0)