of_pci_get_...tion_presets(9)
π of_pci_get_equalization_presets(9) π
okay bestie, welcome to the Kernel API Manual β yes, that's the manual name, we're fancy here π. Today's main character is of_pci_get_equalization_presets, and no, the header isn't gonna say the whole thing twice, we're not doing that β¨.
πΈ NAME πΈ
of_pci_get_equalization_presets β she parses the "eq-presets-Ngts" property. that's it, that's her job, and she ate π
β¨ SYNOPSIS β¨
int of_pci_get_equalization_presets (struct device *dev , struct
pci_eq_presets *presets , int num_lanes );
π¦ ARGUMENTS π¦
devβ the device that's holding the properties. like, she lives here πpresetsβ a pointer where the parsed data gets stored. drop it off, bestie π¦num_lanesβ the maximum number of lanes supported. the literal ceiling, no cap π
π DESCRIPTION π
so here's the tea β: if the property is actually present, she reads it and stores the data into the presets structure. iconic behavior, honestly.
but if it's not there? she doesn't panic, she doesn't spiral β she just assigns a default value of PCI_EQ_RESV and moves on. lowkey graceful πβ¨
π₯ RETURN π₯
0β if the property isn't available, or if it got successfully parsed. either way, slay π«Ά- otherwise, she returns
errno. so like, if it's not0, something went sideways π
no other values, no secret third thing, periodt.
π SEE ALSO π
kernel file ./drivers/pci/of.c, plus the whole friend group:
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_max_link_speed(9)of_pci_get_slot_power_limit(9)
π§ quick vibe check: everything above is fr fr the actual behavior β no invented lore, no extra tips dressed up as facts. iykyk π
and that's the whole page, bestie π this one lives in ./drivers/pci, dated October 2026, and she's filed under of_pci_get_...tion_presets(9) because apparently we're abbreviating now π mwah, go read some kernel source ππ
π¦ 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