pci_host_common_parse_perst(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pci_host_common_parse_perst (kernel API manual, section 9) πŸŽ€

okay so bestie, welcome to the pci_host_common_parse_perst page β€” yes section 9, we're in kernel-API territory, this is the deep lore ✨


✨ NAME ✨

pci_host_common_parse_perst β€” literally parses PERST# from, like, all the nodes, depth first πŸ¦‹

🌸 SYNOPSIS 🌸

int pci_host_common_parse_perst (struct device *dev , struct
       pci_host_port *port , struct device_node *np );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device pointer, your main character struct πŸ’œ
  • port β€” the PCI host port, she's the one holding it down 🫢
  • np β€” the device tree node where we start the parsing, like the front door of the whole situation πŸšͺ

πŸ”₯ DESCRIPTION πŸ”₯

So the way this works: it recursively parses the PERST# GPIO out of every single PCIe bridge node, starting from np, and it does it in a depth-first manner. Recursive. Depth first. Iconic behaviour, no cap πŸ’…πŸŒ³

⭐ RETURN ⭐

Returns 0 on success, or a negative error code on failure. That's it, that's the vibe check 😭

ngl bestie, always check the return value. A negative number is not a personality, it's a problem 🚩

🌈 SEE ALSO 🌈


okay that's the whole page, you ate that πŸ“πŸ’– β€” this came out of ./drivers/pci/controller, dated October 2026, and it's signed pci_host_common_parse_perst(9), periodt βœ¨πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from