pcie_caps_reg(9)
π pcie_caps_reg(9) β from the Kernel API Manual
okay so bestie, this is a page straight out of the Kernel API Manual, and it's literally about grabbing one tiny register. that's it. that's the whole vibe. but it's an iconic little register, so let's get into it π
β¨ NAME β¨
pcie_caps_reg β get the PCIe Capabilities Register π«Ά
like⦠it fetches the PCIe Capabilities Register for you. short king behavior, but make it kernel API.
πΈ SYNOPSIS πΈ
u16 pcie_caps_reg (const struct pci_dev *dev );
yes, it returns a u16, yes it takes a const pointer to a struct pci_dev, no there's no drama. slay. π
π ARGUMENTS π
devβ the PCI device. that's the whole argument. one (1) device. give the function your device and it does its thing β¨
π¦ SEE ALSO π¦
okay this list is long β like, main character energy long β but every single one is here because we don't skip. not on my watch, bestie π
Kernel file ./include/linux/pci.henum pci_interrupt_pin(9)pci_channel_state_t(9)pci_is_bridge(9)pci_is_vga(9)pci_is_display(9)struct pci_driver(9)PCI_DEVICE(9)PCI_DEVICE_DRIVER_OVERRIDE(9)PCI_DRIVER_OVERRIDE_DEVICE_VFIO(9)PCI_DEVICE_SUB(9)PCI_DEVICE_CLASS(9)PCI_VDEVICE(9)PCI_VDEVICE_SUB(9)PCI_DEVICE_DATA(9)pcie_capability_clear_and_set_word(9)pci_bus_for_each_resource(9)module_pci_driver(9)builtin_pci_driver(9)pci_irq_type(9)pci_irqd_intx_xlate(9)pci_resource_is_io(9)pci_resource_is_mem(9)pci_pcie_cap(9)pci_is_pcie(9)pci_pcie_type(9)pcie_find_root_port(9)pci_vpd_alloc(9)pci_vpd_find_id_string(9)pci_vpd_find_ro_info_keyword(9)pci_vpd_check_csum(9)pci_ari_enabled(9)pci_is_thunderbolt_attached(9)
like, whole PCI subsystem in the group chat π iykyk π§
π friendly reminder from your girl: these (9) numbers mean "section 9, kernel API" β that's just how man pages do. no cap.
that's the whole page, bestie β short and sweet, exactly like the original said. go read ./include/linux/pci.h if you want the lore π
β π from the ./include/linux directory, dated October 2026, signed pcie_caps_reg(9) π mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms