wq_has_sleeper(9)
β¨ wq_has_sleeper(9) β¨
okay so bestie, welcome to the wq_has_sleeper(9) page π
this is a little kernel API manual situation and honestly it's giving tiny-but-mighty. it's a function that just wants to know one thing: is anybody waiting?? π
πΈ NAME πΈ
wq_has_sleeper β check if there are any waiting processes π«Ά
like, that's it. that's the whole job. she's a vibe check for sleeping tasks.
π SYNOPSIS π
bool wq_has_sleeper (struct wait_queue_head *wq_head );
π¦ ARGUMENTS π¦
wq_headβ the wait queue head π (yes, that's the whole description, she's lowkey mysterious like that)
β DESCRIPTION β
Returns true if wq_head has waiting processes π₯ so like, if the answer is "yes bestie, people are queued up," you get true. no cap.
also!! pls pls pls refer to the comment for waitqueue_active β that's where the real lore lives, iykyk π it's literally the same energy, so go read that before you come for her.
π SEE ALSO π
Kernel file ./include/linux/wait.h β yes that's the file, go look at it π§, and then the whole wait-queue extended universe:
waitqueue_active(9)wq_has_single_sleeper(9)wake_up_pollfree(9)wait_event(9)wait_event_freezable(9)wait_event_timeout(9)wait_event_cmd(9)wait_event_interruptible(9)wait_event_interruptible_timeout(9)wait_event_hrtimeout(9)wait_event_interruptible_hrtimeout(9)wait_event_idle(9)wait_event_idle_exclusive(9)wait_event_idle_timeout(9)wait_event_idle_exclusive_timeout(9)wait_event_interruptible_locked(9)wait_event_interruptible_locked_irq(9)wait_event_interruptible_exclusive_locked(9)wait_event_interruptible_exclusive_locked_irq(9)wait_event_killable(9)wait_event_state(9)wait_event_killable_timeout(9)wait_event_lock_irq_cmd(9)wait_event_lock_irq(9)wait_event_interruptible_lock_irq_cmd(9)wait_event_interruptible_lock_irq(9)wait_event_interruptible_lock_irq_timeout(9)
likeβ¦ that's a whole friend group and wq_has_sleeper is absolutely in it ππ
okay that's the page!! sign-off time π this precious lil thing ships from ./include/linux and dated October 2026 β iconic behavior fr fr, periodt π
β¨π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms