pci_pwrctrl_...r_on_devices(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

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