---
name: "hwloc_obj_attr_u_hwloc_pcidev_attr_s"
section: "3"
platform: "linux"
package: "hwloc"
version: "2.15.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/hwloc_obj_attr_u_hwloc_pcidev_attr_s"
---

# hwloc\_obj\_attr\_u\_hwloc\_pcidev\_attr\_s(3)

## NAME

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

## SYNOPSIS

\#include \<hwloc.h\>

### 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

PCI Device specific Object Attributes.

## Field Documentation

### 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

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

### 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

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

### 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

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

### 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

Revision number.

### 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

Sub-Vendor ID.

### unsigned short hwloc\_obj\_attr\_u::hwloc\_pcidev\_attr\_s::vendor\_id

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

## Author

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