___clear_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

___clear_bit πŸ’…

πŸ’– NAME πŸ’–

okay so bestie, this is ___clear_bit(9) from the Kernel API Manual, and it's lowkey iconic: it clears a bit in memory. no cap, that's the whole main character energy. ✨

🌸 SYNOPSIS 🌸

here's the signature fr fr β€” copy it exactly, no freelance editing:

void ___clear_bit (unsigned long nr , volatile unsigned long *addr );

πŸŽ€ ARGUMENTS πŸŽ€

  • nr β€” the bit to clear πŸ’…
  • addr β€” the address to start counting from 🧚

πŸ¦‹ DESCRIPTION πŸ¦‹

Unlike clear_bit, this function is non-atomic. 🚨 and that's not a vibe check you can skip: if it is called on the same region of memory concurrently, the effect may be that only one operation succeeds. periodt. πŸ’…

🚨 non-atomic caveat: concurrent calls on the same region can mean only one operation succeeds. keep that in mind, bestie β€” it's giving β€œnot a group project.” 😭

🌈 SEE ALSO 🌈


mwah πŸ’‹ source/version: ./include/asm-generic/bitops; date: October 2026; page: ___clear_bit(9) β€” bye bestie, go clear that bit 🫢

πŸ“¦ where this page comes from