wakeup_source_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– wakeup_source_destroy πŸ’– (that's the wakeup_source_destroy(9) page, from the Kernel API Manual, bestie)

okay so picture this: you made a struct wakeup_source, and now you gotta let it go. this page is literally just the "break up era" function. nothing more, nothing less. πŸ¦‹


✨ SYNOPSIS ✨

void wakeup_source_destroy (struct wakeup_source *ws );

yes that's the whole signature. no return value, no drama (well, okay, it returns void, which is its own kind of drama). πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • ws β€” the wakeup source you're about to destroy. that's it. that's the argument. say bye 🫢

🌸 DESCRIPTION 🌸

so, real talk: you use this only for wakeup source objects that were created with wakeup_source_create. like, that's the whole rule. if you made it with wakeup_source_create, then wakeup_source_destroy is your girl. match made in heaven, periodt. ✨

not me stressing the "only" β€” this is a pairing situation, bestie. created with wakeup_source_create β†’ destroyed with wakeup_source_destroy. don't mix and match, i'm begging πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

all the sibling functions and neighbors you might also be looking for. the whole friend group, fr fr πŸ’œ


okay that's the page!! go free your wakeup sources bestie, they earned it πŸ§šπŸ’–

sign-off szn: this lil beauty comes from ./drivers/base/power, dated October 2026 β€” and honestly? iconic of it. πŸ‘‘πŸŒΈ

πŸ“¦ where this page comes from