pcie_get_link_speed(9)
π NAME π
okay so this is the pcie_get_link_speed(9) page from the Kernel API Manual, and the whole vibe is: get the speed value from a PCIe generation number. That's it. That's the mission. β¨
β¨ SYNOPSIS β¨
unsigned char pcie_get_link_speed (unsigned int speed );
π ARGUMENTS π
speedβ your PCIe speed, and bestie it's 1-based:1 = 2.5GT,2 = 5GT,...π
π DESCRIPTION π
If speed is valid, you get the speed value back β like, for example, PCIE_SPEED_2_5GT β and that's the slay. π If it's not valid, you get PCI_SPEED_UNKNOWN instead. No cap, that's the whole return situation.
π₯ SEE ALSO π₯
The SEE ALSO section is giving "go read the kernel file and the whole friend group", so: kernel file ./drivers/pci/probe.c, plus __pci_size_bars(9), __pci_read_base(9), pci_ea_fixed_busnrs(9), pci_ext_cfg_is_aliased(9), pci_cfg_space_size_ext(9), pci_intx_mask_broken(9), pci_setup_device(9), pcie_relaxed_ordering_enabled(9), pci_release_dev(9), pci_scan_slot(9), pci_scan_child_bus_extend(9), pci_scan_child_bus(9), pcibios_root_bridge_prepare(9), pci_rescan_bus_bridge_resize(9), pci_rescan_bus(9). all of those, periodt. π
okay bye bestie π«Ά this page's footer energy is source ./drivers/pci and date October 2026 β 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