pm_get_wakeup_count(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’€ pm_get_wakeup_count(9) πŸ’€

okay bestie, gather round, because we're diving into the Kernel API Manual and today's main character is pm_get_wakeup_count β€” yes she's from the kernel API manual, yes she's iconic, no we're not skipping her ✨


🌸 NAME 🌸

pm_get_wakeup_count β€” literally just reads the number of registered wakeup events for you. that's her whole thing. that's the assignment and she ate πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

bool pm_get_wakeup_count (unsigned int *count , bool block );

πŸŽ€ ARGUMENTS πŸŽ€

  • count β€” the address where you want the value stored. like, hand her a spot in memory and she'll put the number there, no cap 🫢
  • block β€” whether or not to block. yes that's the whole description, she's a simple girlie πŸ™ˆ

✨ DESCRIPTION ✨

so here's the tea: she stores the number of registered wakeup events at the address in count. simple, clean, gorgeous πŸ’–

and if block is set? she will block until the current number of wakeup events being processed is zero. like she's not moving until the vibes are settled, periodt ⭐

she returns 'false' if the current number of wakeup events being processed is nonzero. otherwise she returns 'true'. that's it, that's the whole vibe check πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, fr fr β€” plus the kernel file ./drivers/base/power/wakeup.c:


and that's the whole page, bestie!! 🌈 this lil gem lives under ./drivers/base/power and the version you're reading is dated October 2026 β€” go forth and wake things up responsibly, mwah πŸ’‹πŸ’œ

πŸ“¦ where this page comes from