of_pci_get_max_link_speed(9)
π of_pci_get_max_link_speed(9)
okay so bestie, this one lives in the Kernel API Manual and it's genuinely such a little icon β short, sweet, does exactly one thing. no cap. β¨
πΈ NAME πΈ
of_pci_get_max_link_speed β find the maximum link speed of the given device node. that's it, that's the whole vibe π«Ά
π SYNOPSIS π
int of_pci_get_max_link_speed (struct device_node *node );
literally one argument, one int coming back. immaculate energy. π
π¦ ARGUMENTS π¦
nodeβ the device tree node that's holding the maximum link speed information. like, that's where the tea is stored π
β¨ DESCRIPTION β¨
so here's what she does: this function will try to read the "max-link-speed" property of the device tree node you hand her. lowkey a read-only girlie. π
β οΈ heads up bestie β it does NOT validate the value of the property. she reads it, she hands it back, she does not judge. no vibe check, no fact check, nothing. if the property is cursed, that's between you and the device tree π
π₯ RETURN π₯
- max link speed value on success π
errnoon failure π
that's the whole trade-off. either you get a number or you get a bad time. fr fr.
π SEE ALSO π
kernel file ./drivers/pci/of.c β plus her whole friend group, all linked up:
pci_set_of_node(9)of_pci_get_devfn(9)of_pci_parse_bus_range(9)of_get_pci_domain_nr(9)of_pci_preserve_config(9)of_pci_check_probe_only(9)devm_of_pci_get_host_bridge_resources(9)of_irq_parse_pci(9)of_irq_parse_and_map_pci(9)of_pci_supply_present(9)of_pci_get_slot_power_limit(9)of_pci_get_equalization_presets(9)
the whole squad, main character energy across the board ππ
mwah π that's the page! sourced straight from ./drivers/pci, dated October 2026 β go read it again if you forgot anything, i'll wait π§ββοΈπ
π¦ 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