___change_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME

okay so bestie, welcome to the Kernel API Manual β€” the main character today is ___change_bit(9), and its whole vibe is flipping a single bit in memory. That's it. That's the gig. πŸ’…


✨ SYNOPSIS

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

πŸŽ€ ARGUMENTS

  • nr β€” the bit to change. this is the bit you're toggling, bestie.
  • addr β€” the address to start counting from. yes, literally the starting address for the counting situation.

πŸ¦‹ DESCRIPTION

okay so real talk: unlike change_bit, this function is non-atomic and may be reordered. it is absolutely not giving "safe simultaneous vibes."

🚨 if it's called on the same region of memory simultaneously, the effect may be that only one operation succeeds. so like… don't expect both calls to land, because that's literally the warning.

🌈 SEE ALSO


mwah πŸ’‹ this lil page came from ./tools/include/asm-generic/bi... and it's dated October 2026 β€” periodt. 🫢

πŸ“¦ where this page comes from