palmas_pwron_suspend(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ palmas_pwron_suspend

okay bestie, so this is a page from the Kernel API Manual β€” yes, the kernel has lore and yes it's documented 😌 β€” and today's main character is palmas_pwron_suspend, the suspend handler. It's giving "time for bed, power button" energy.


✨ SYNOPSIS ✨

int palmas_pwron_suspend (struct device *dev );

it takes one thing and returns an int. simple. iconic. no notes πŸ’…


🫢 ARGUMENTS 🫢

  • dev β€” the power button device. that's it, that's the whole argument list, she's low maintenance πŸ’–

πŸŽ€ DESCRIPTION πŸŽ€

so when the system goes to sleep, this handler does two (2) jobs fr fr:

  • cancels all pending work items for the power button β€” sorry girlies, the queue is closed 🚫
  • sets up the irq for wakeup β€” so the power button can still wake everybody back up ⏰✨

basically: clean up the vibes, but leave the door unlocked so the button can knock when it's time to rise and shine 🌸


πŸ‘‘ RETURN πŸ‘‘

returns 0. that's it. zero. a whole clean slate, no drama, no cap πŸ™ˆ


πŸ¦‹ SEE ALSO πŸ¦‹

kernel file ./drivers/input/misc/palmas-pwrbutton.c

the whole friend group 🫢:


ngl bestie, if you only read one of these, read palmas_pwron_resume(9) right after β€” they're literally the wake/sleep duo and they ate πŸ’€πŸ”₯

and that's the whole page, periodt πŸ’œ this little gem lives in ./drivers/input/misc and it's dated October 2026 β€” screenshot it, cite it, gatekeep it, whatever you gotta do πŸ§šπŸ“β­

πŸ“¦ where this page comes from