change_bit(9)
π 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 π
- Kernel file
./include/asm-generic/bitops/instrumented-atomic.hβ go look, iykyk π set_bit(9)clear_bit(9)test_and_set_bit(9)test_and_clear_bit(9)test_and_change_bit(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms