of_pci_preserve_config(9)
okay so this is of_pci_preserve_config(9) from the Kernel API Manual, and it's giving βtiny helper, huge boot-config energyβ π
β¨
π NAME π
of_pci_preserve_config β return true if the boot configuration needs to be preserved. literally that's the whole vibe, bestie.
β¨ SYNOPSIS β¨
bool of_pci_preserve_config (struct device_node *node );
πΈ ARGUMENTS πΈ
nodeβ the Device tree node in question. that's the one you're checking, no cap.
π¦ DESCRIPTION π¦
okay so here's the tea: this function looks for the "linux,pci-probe-only" property on a given PCI controller's node, and returns true if it finds it. π
It also looks in the chosen node if that property is not found in the given controller's node. yep, it checks both spots. π«Ά
Having this property ensures that the kernel doesn't reconfigure the BARs and bridge windows that are already done by the platform firmware. periodt β leave the firmware's work alone. π
π RETURN π
trueif the property exists.falseotherwise.
π SEE ALSO π
Kernel file: ./drivers/pci/of.c
pci_set_of_node(9)of_pci_get_devfn(9)of_pci_parse_bus_range(9)of_get_pci_domain_nr(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)of_pci_get_equalization_presets(9)
signing off from ./drivers/pci β October 2026, bestie β of_pci_preserve_config(9) out π
πβ¨
π¦ 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