wakeup_source_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– wakeup_source_register(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for wakeup_source_register(9) β€” yes that's the whole title, it's giving "I'm the main character of the power-management subsystem" and honestly? it ate. πŸŽ€


✨ NAME ✨

wakeup_source_register β€” Create wakeup source and add it to the list.

like literally that's the whole job. it makes one and yeets it onto the list. no cap. πŸ’…


🌸 SYNOPSIS 🌸

struct wakeup_source * wakeup_source_register (struct device *dev ,
       const char *name );

she takes two things and gives you back a struct wakeup_source *. iconic behaviour tbh. πŸ¦‹


πŸ’œ ARGUMENTS πŸ’œ

  • dev β€” the Device this wakeup source is associated with (or NULL if virtual). so like, if your wakeup source doesn't have a device bestie to hang with, you pass NULL and she's virtual. lowkey valid. 🫢
  • name β€” the Name of the wakeup source to register. give her a name, she deserves one, she's a whole individual. ⭐

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/base/power/wakeup.c β€” that's where she lives, that's her home address, go visit her. 🏑

and now the entire friend group, no gatekeeping, every single one:

like look at that list. thirty-nine besties. the whole friend group showed up and they're all slaying in their own little ways. πŸ‘‘


ok real talk for one sec: read the actual kernel docs before you go poking at power management, because sleeping/waking is a whole ✨vibe✨ and you don't wanna mess it up. πŸ’€

alright that's the page!! brought to you fresh from ./drivers/base/power, dated October 2026, and she's serving wakeup_source_register(9) realness. mwah πŸ’‹πŸ¦‹βœ¨πŸ“πŸ’–

πŸ“¦ where this page comes from