wait_on_bit_lock_action(9)
π NAME π
wait_on_bit_lock_action β wait for a bit to be cleared, then set it
okay bestie, welcome to the wait_on_bit_lock_action(9) page from the Kernel API Manual β this one is genuinely so iconic β¨
β¨ SYNOPSIS β¨
no cap, hereβs the exact signature, copy it character for character:
int wait_on_bit_lock_action (unsigned long *word , int bit ,
wait_bit_action_f *action , unsigned mode );
π ARGUMENTS π
wordβ the address containing the bit being waited onbitβ the bit of thewordbeing waited on and setactionβ the function used to sleep, which may take special actionsmodeβ the task state to sleep in
π¦ DESCRIPTION π¦
okay so this is similar to wait_on_bit_lock, but it calls action instead of schedule for the actual waiting. itβs giving βsame vibe, different main characterβ π
the returned value will be zero if the bit was successfully set, in which case the call has the same memory sequencing semantics as test_and_clear_bit β or the error code returned by action if that call returned non-zero. periodt π«Ά
π SEE ALSO π
kernel file: ./include/linux/wait_bit.h β and the whole friend group is here:
wait_on_bit(9)wait_on_bit_io(9)wait_on_bit_timeout(9)wait_on_bit_action(9)wait_on_bit_lock(9)wait_on_bit_lock_io(9)wait_var_event(9)wait_var_event_io(9)wait_var_event_killable(9)wait_var_event_timeout(9)wait_var_event_interruptible(9)wait_var_event_any_lock(9)wait_var_event_spinlock(9)wait_var_event_mutex(9)wake_up_var_protected(9)wake_up_var_locked(9)clear_and_wake_up_bit(9)test_and_clear_wake_up_bit(9)atomic_dec_and_wake_up(9)store_release_wake_up(9)
thatβs the whole wait_on_bit_lock_action(9) page from the ./include/linux source, dated October 2026 β byeee bestie, go slay some bits π«Άβ¨
π¦ 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