device_pm_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– device_pm_lock β€” from the Kernel API Manual πŸ’–

okay bestie, welcome to the Kernel API Manual, page device_pm_lock β€” yes the whole manual name is in the title, we're being ✨official✨ today.


🌸 NAME 🌸

device_pm_lock β€” literally just locks the list of active devices that the PM core uses. that's it. that's the whole job. lowkey iconic for how simple it is πŸ’…


✨ SYNOPSIS ✨

void device_pm_lock (void );

like… she takes nothing, she returns nothing, she just locks. main character energy, no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” no arguments, bestie. zero. none. the void is empty and honestly? we respect it πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

okay so this is the part where the manpage goes absolutely feral and lists everything in Kernel file ./drivers/base/power/main.c. buckle up, it's a long one, but I'm not skipping a single one of these β€” every single reference stays, fr fr πŸ’€

forty of them. forty!! and they're all living in ./drivers/base/power β€” go read them, iykyk πŸ“šπŸ”₯


πŸ’œ tiny reminder bestie: device_pm_lock locks. device_pm_unlock(9) unlocks. don't forget to unlock, or things get ✨stuck✨ and nobody wants that 😭

🌈 that's the whole page!! source/version is ./drivers/base/power and the date on this beauty is October 2026 β€” so yes, she's from the future, and she ate. periodt. πŸŽ€πŸ’…πŸ‘‘

πŸ“¦ where this page comes from