pci_pwrctrl_...r_on_devices(9)
π pci_pwrctrl_power_on_devices(9) β Kernel API Manual π
okay so bestie, you found the man page for pci_pwrctrl_...r_on_devices(9) (yes that's the truncated header name, she's just like that π
) and honestly? it's a little gem. grab a snack, we're powering things on. β¨
πΈ NAME πΈ
pci_pwrctrl_power_on_devices β literally just powers on pwrctrl devices. that's the whole vibe. π₯
π¦ SYNOPSIS π¦
int pci_pwrctrl_power_on_devices (struct device *parent );
π DESCRIPTION π
okay so picture this π: you hand it a PCI host controller, and it goes recursively strolling through all the pwrctrl devices in the devicetree hierarchy below that controller β like, the whole family tree, no skipping β and powers them on in a depth first manner. ngl that ordering is the main character here. it goes deep before it goes wide, periodt. π§
and the way that it's careful π β if anything goes wrong along the way, every device that already got powered on gets powered off again. a full undo. she does not leave you hanging with half-on hardware, that's such a slay. π
π ARGUMENTS π
parentβ the PCI host controller device. that's your starting point, your anchor, your main character device. π«Ά
β RETURN β
0β success, we ate, everything is on. β¨-EPROBE_DEFERβ happens if any pwrctrl driver is not bound. just a "not yet bestie, try again later" situation. β³- an appropriate error code otherwise. π
π SEE ALSO π
- Kernel file
./drivers/pci/pwrctrl/core.c pci_pwrctrl_init(9)pci_pwrctrl_device_set_ready(9)pci_pwrctrl_device_unset_ready(9)devm_pci_pwrctrl_device_set_ready(9)pci_pwrctrl_power_off_devices(9)pci_pwrctrl_create_devices(9)pci_pwrctrl_destroy_devices(9)
like, go read the whole friend group honestly, they all hang out in the same file π¦π
ok one tiny heads-up bestie π: the pwrctrl devices it powers on are the ones under the controller you pass in β so make sure that parent is actually the host controller you meant, iykyk.
and that's the page!! π source is ./drivers/pci/pwrctrl and she's dated October 2026, so mark your calendar babe ποΈπ
β see you in the next man page, mwah! ππΈβ¨
π¦ 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