palmas_pwron_suspend(9)
π€ 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 π«Ά:
struct palmas_pwron(9)struct palmas_pwron_config(9)palmas_power_button_work(9)pwron_irq(9)palmas_pwron_params_ofinit(9)palmas_pwron_probe(9)palmas_pwron_remove(9)palmas_pwron_resume(9)
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
- 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