pci_host_common_parse_perst(9)
π 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 π
- Kernel file
./drivers/pci/controller/pci-host-common.cπ pci_host_common_delete_ports(9)pci_host_common_parse_port(9)pci_host_common_parse_ports(9)pci_host_common_d3cold_possible(9)
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
- 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