genpd_sync_power_on(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ genpd_sync_power_on ✨

okay so bestie, welcome to the Kernel API Manual, section 9 β€” today's main character is genpd_sync_power_on, and she is literally the girl who turns the lights on πŸ’‘


🌸 NAME 🌸

genpd_sync_power_on β€” synchronously power on a PM domain and its parents. yes, and its parents, she's respectful like that 🫢


πŸŽ€ SYNOPSIS πŸŽ€

void genpd_sync_power_on (struct generic_pm_domain *genpd , bool
       use_lock , unsigned int depth );

notice the void? she does the work and gives you nothing back. no return value, no drama, no notes πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • genpd β€” the PM domain you want to power on. this is the girl. the whole point. πŸ”₯
  • use_lock β€” use the lock. that's it, that's the whole vibe. pass whether you're locking or not πŸ”’
  • depth β€” nesting count for lockdep. it's for the lock detective, so she knows how deep in the stack we're vibing. keep it accurate or things get weird 😭

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so listen β€” this function is only called in the "noirq" and "syscore" stages of system power transitions. only those two. no cap 🫢

and here's the tea πŸ“: the "noirq" callbacks may be executed asynchronously, so in these cases the lock must be held.

⚠️ fr fr, it's giving "consequences". the lock must be held in those asynchronous "noirq" cases. don't skip it, bestie, that's not a vibe check you wanna fail πŸ’€

🌈 SEE ALSO 🌈

she runs with a huge friend group, and honestly? iconic. every single one of them, coming through πŸ‘‘

  • Kernel file ./drivers/pmdomain/core.c β€” the source file, the mothership 🏠

the dev_pm_genpd_* girlies ✨

the genpd_* core crew πŸ’œ

the setup / teardown squad 🧚

the device-tree / provider besties 🌸

the attach/detach & idle-states cuties πŸŽ€

like… that's the whole group chat right there and they all ate πŸ’…


πŸ’– a little sign-off πŸ’–

this whole thing lives in ./drivers/pmdomain, dated October 2026, and yeah that's the version/date stamp bestie β€” picture me blowing a kiss to the kernel docs 🫢✨ bye, go hold that lock πŸ’œ

πŸ“¦ where this page comes from