hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s(3) Library Functions Manual hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s(3)

# [NAME](#NAME)

hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s

# [SYNOPSIS](#SYNOPSIS)

#include &lt;hwloc.h&gt;

## [Data Fields](#Data_Fields)

unsigned short **domain**  
unsigned char **bus**  
unsigned char **dev**  
unsigned char **func**  
unsigned short **class\_id**  
unsigned short **vendor\_id**  
unsigned short **device\_id**  
unsigned short **subvendor\_id**  
unsigned short **subdevice\_id**  
unsigned char **revision**  
float **linkspeed**

# [Detailed Description](#Detailed_Description)

PCI Device specific Object Attributes.

# [Field Documentation](#Field_Documentation)

## [unsigned char hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s::bus](#unsigned_char_hwloc_obj_attr_u::hwloc_pcidev_attr_s::bus)

Bus number (yy in the PCI BDF notation xxxx:yy:zz.t).

## [unsigned short hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s::class\_id](#unsigned_short_hwloc_obj_attr_u::hwloc_pcidev_attr_s::class_id)

The class number (first two bytes, without the prog\_if).

## [unsigned char hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s::dev](#unsigned_char_hwloc_obj_attr_u::hwloc_pcidev_attr_s::dev)

Device number (zz in the PCI BDF notation xxxx:yy:zz.t).

## [unsigned short hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s::device\_id](#unsigned_short_hwloc_obj_attr_u::hwloc_pcidev_attr_s::device_id)

Device ID (yyyy in \[xxxx:yyyy]).

## [unsigned short hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s::domain](#unsigned_short_hwloc_obj_attr_u::hwloc_pcidev_attr_s::domain)

Domain number (xxxx in the PCI BDF notation xxxx:yy:zz.t). Only 16bits PCI domains are supported by default.

## [unsigned char hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s::func](#unsigned_char_hwloc_obj_attr_u::hwloc_pcidev_attr_s::func)

Function number (t in the PCI BDF notation xxxx:yy:zz.t).

## [float hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s::linkspeed](#float_hwloc_obj_attr_u::hwloc_pcidev_attr_s::linkspeed)

Link speed in GB/s. This datarate is the currently configured speed of the entire PCI link (sum of the bandwidth of all PCI lanes in that link). It may change during execution since some devices are able to slow their PCI links down when idle.

## [unsigned char hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s::revision](#unsigned_char_hwloc_obj_attr_u::hwloc_pcidev_attr_s::revision)

Revision number.

## [unsigned short hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s::subdevice\_id](#unsigned_short_hwloc_obj_attr_u::hwloc_pcidev_attr_s::subdevice_id)

Sub-Device ID.

## [unsigned short hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s::subvendor\_id](#unsigned_short_hwloc_obj_attr_u::hwloc_pcidev_attr_s::subvendor_id)

Sub-Vendor ID.

## [unsigned short hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s::vendor\_id](#unsigned_short_hwloc_obj_attr_u::hwloc_pcidev_attr_s::vendor_id)

Vendor ID (xxxx in \[xxxx:yyyy]).

# [Author](#Author)

Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code.

Version 2.15.0 Hardware Locality (hwloc)

---

Document: hwloc_obj_attr_u_hwloc_pcidev_attr_s(3) from hwloc-cuda-12.8 2.15.0-r0 (Chainguard OS)
Source: https://github.com/open-mpi/hwloc
