of_pci_preserve_config(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 πŸ’–

  • true if the property exists.
  • false otherwise.

🌈 SEE ALSO 🌈

Kernel file: ./drivers/pci/of.c


signing off from ./drivers/pci β€” October 2026, bestie β€” of_pci_preserve_config(9) out πŸ’…πŸŽ€βœ¨

πŸ“¦ where this page comes from