devm_pci_pw...ce_set_ready(9)
π NAME π
devm_pci_pwrctrl_device_set_ready β the managed girlie version of pci_pwrctrl_device_set_ready(). like, same energy, but the devres crew handles the cleanup for you β¨
okay so real talk, this is from the Kernel API Manual and it's genuinely so useful, let me put you on π«Ά
πΈ SYNOPSIS πΈ
int devm_pci_pwrctrl_device_set_ready (struct device *dev , struct
pci_pwrctrl *pwrctrl );
π ARGUMENTS π
devβ the device that's managing thispwrctrlprovider. she's the main character running the whole situation πpwrctrlβ the PCI power control data itself. literally the vibes we're setting up π
β RETURN β
0 on success π β and a negative error number on error, no in-between, no "it's complicated" π
π¦ SEE ALSO π¦
Kernel file ./drivers/pci/pwrctrl/core.c, plus the whole friend group:
pci_pwrctrl_init(9)pci_pwrctrl_device_set_ready(9)pci_pwrctrl_device_unset_ready(9)pci_pwrctrl_power_off_devices(9)pci_pwrctrl_power_on_devices(9)pci_pwrctrl_create_devices(9)pci_pwrctrl_destroy_devices(9)
and that's the whole page bestie, no notes π this icon lives at ./drivers/pci/pwrctrl, stamped October 2026 β go read the source, iykyk π
π¦ 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