sync_test_and_clear_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

sync_test_and_clear_bit(9) β€” Kernel API Manual πŸŽ€

okay so bestie, welcome to the sync_test_and_clear_bit(9) page πŸ’– this is the Kernel API Manual, and we're clearing a bit and handing back its old value. iconic behavior, no cap.

✨ NAME ✨

sync_test_and_clear_bit β€” Clear a bit and return its old value πŸ’…

🌸 SYNOPSIS 🌸

int sync_test_and_clear_bit (long nr , volatile unsigned long *addr );

πŸŽ€ ARGUMENTS πŸŽ€

  • nr β€” Bit to clear πŸ’…
  • addr β€” Address to count from 🫢

πŸ’« DESCRIPTION πŸ’«

This operation is atomic and cannot be reordered. It also implies a memory barrier. so like… it's giving "do not reorder me, I mean it" energy, fr fr 😭πŸ”₯

🌈 SEE ALSO 🌈

Kernel file ./arch/x86/include/asm/sync_bitops.h plus these besties:


cute sign-off time πŸ’– source/version: ./arch/x86/include/asm Β· date: October 2026 Β· manual: sync_test_and_clear_bit(9) β€” mwah, bye bestie πŸ’‹βœ¨

πŸ“¦ where this page comes from