change_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– change_bit(9) πŸ’–

okay so bestie, this is the Kernel API Manual entry for change_bit(9) β€” and it is literally all about toggling a bit in memory. slay. ✨


🌸 NAME 🌸

change_bit β€” Toggle a bit in memory πŸ¦‹

✨ SYNOPSIS ✨

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

πŸŽ€ ARGUMENTS πŸŽ€

  • nr β€” Bit to change. that's the bit you're flipping, bestie πŸ’…
  • addr β€” Address to start counting from. yep, that's the starting point 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

This is a relaxed atomic operation β€” no implied memory barriers, okay? so don't go assuming extra barrier energy that isn't there. periodt. πŸ’€

Also, heads up: nr may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity. it's giving flexible, not one-word-only. 🌈

πŸ‘‘ SEE ALSO πŸ‘‘


okay bye bestie, this page came from ./include/asm-generic/bitops and it's dated October 2026 β€” source/version and date noted, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from