swq_has_sleeper(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… swq_has_sleeper(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes we're reading kernel docs together, this is our bonding time now 🫢


✨ NAME ✨

swq_has_sleeper β€” check if there are any waiting processes πŸ‘€

Like literally, it's the "is anybody home??" of the kernel. No cap.


🌸 SYNOPSIS 🌸

bool swq_has_sleeper (struct swait_queue_head *wq );

that's it, that's the whole vibe. one function, one pointer, returns a bool. simple, iconic, ate πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • wq β€” the waitqueue to test for waiters 🧚 like, this is the queue you're checking. the one you're side-eyeing. the one you're asking "so… anyone in there?"

πŸ’– DESCRIPTION πŸ’–

Returns true if wq has waiting processes ✨

that's the whole thing. true = somebody's waiting, false = nobody's around, the queue is empty, it's giving ghost town πŸ’€

real talk tho: please refer to the comment for swait_active πŸ™ˆ β€” the docs said it, not me. go read that comment, it's the source of truth, iykyk.

πŸ¦‹ SEE ALSO πŸ¦‹

the whole swait girlies, all linked up, all besties 🌈


and that's the page!! πŸŽ€ mwah πŸ’‹

lil sign-off: this one lives in ./include/linux, stamped October 2026, and it's swq_has_sleeper(9) β€” main character of the swait queue, periodt πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from