wait_on_bit_lock_action(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 on
  • bit β€” the bit of the word being waited on and set
  • action β€” the function used to sleep, which may take special actions
  • mode β€” 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:


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