__pm_stay_awake(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __pm_stay_awake β€” a Kernel API Manual moment πŸ’–

okay so bestie, welcome to the Kernel API Manual, page __pm_stay_awake(9). this one's short and sweet but it's literally carrying the whole power-management vibe, so pay attention 🫢


✨ NAME ✨

__pm_stay_awake β€” notify the PM core of a wakeup event. that's it, that's the whole job, and it does it flawlessly πŸ’…


✨ SYNOPSIS ✨

void __pm_stay_awake (struct wakeup_source *ws );

look at that signature. void. no return value. no drama. just vibes ✨


✨ ARGUMENTS ✨

  • ws β€” the wakeup source object that's associated with whatever is out here causing the event. like, the source of the source, ykwim? πŸ‘‘

✨ DESCRIPTION ✨

so here's the tea: it is safe to call this function from interrupt context πŸ”₯ no cap. interrupt context is famously not the place you wanna be doing anything cute or extra, but this one? totally fine there. it's giving low-maintenance, unbothered, main character energy 🌈

fr fr, "safe from interrupt context" is the whole entire description here β€” don't go inventing extra behaviour for it, bestie πŸ™ˆ

✨ SEE ALSO ✨

this is the part where the friend group shows up. everyone is here:

Kernel file ./drivers/base/power/wakeup.c β€” that's where the magic lives 🧚

(yes you read pm_wakep_autosleep_enabled(9) correctly β€” that's the name, we do not touch it, we do not "fix" it, we respect it πŸ’€πŸ’–)


that's the whole page, icon. short, iconic, interrupt-context-safe 🌸

⭐ sign-off: this lil beauty lives in ./drivers/base/power, dated October 2026, and it's part of the Kernel API Manual β€” go forth and wake things up responsibly, bestie πŸŽ€πŸ’œ

πŸ“¦ where this page comes from