arch_change_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ arch_change_bit(9) πŸŽ€

Okay so this page is from the Kernel API Manual, and it's here to make a bit-toggling function make sense, bestie. No cap. πŸ’–

✨ NAME ✨

arch_change_bit β€” toggle a bit in memory. That's the whole name, and it ate. πŸ’…

πŸ› οΈ SYNOPSIS πŸ› οΈ

Here's the exact signature, keep it verbatim:

void arch_change_bit (int nr , volatile unsigned long *addr );

🧾 ARGUMENTS 🧾

Two arguments, bestie β€” both iconic:

  • nr β€” bit to change. πŸ¦‹
  • addr β€” address to start counting from. πŸŽ€

πŸ“– DESCRIPTION πŸ“–

Big caveat first, fr fr: change_bit may be reordered on other architectures than x86. 🚨 So don't treat that reorder thing as a universal x86 vibe.

Also, note that nr may be almost arbitrarily large; this function is not restricted to acting on a single-word quantity. 🌸 So yeah, it's not just a one-word situation β€” that's the whole point, iykyk.

🌈 SEE ALSO 🌈

Kernel file ./arch/riscv/include/asm/bitops.h β€” go look, bestie. πŸ‘‘

The whole function squad, in order:


πŸ’– And that's the tea: source/version ./arch/riscv/include/asm, dated October 2026, for arch_change_bit(9). Stay iconic, bestie! πŸ’–

πŸ“¦ where this page comes from