__mips_test_and_change_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME

okay bestie, this is the Kernel API Manual page for __mips_test_and_change_bit(9), and the whole vibe is: it changes a bit and returns its old value. That's the main character move. It's called by test_and_change_bit() if it cannot find a faster solution. Periodt.

✨ SYNOPSIS ✨

int __mips_test_and_change_bit (unsigned long nr , volatile unsigned long *addr );

No cap, that's the signature: a bit number nr and a pointer to a volatile unsigned long called addr.

πŸŽ€ ARGUMENTS πŸŽ€

  • nr β€” bit to change. Which bit, bestie? This one.
  • addr β€” address to count from. That's literally what the page says.

πŸ”— SEE ALSO πŸ”—

Kernel file ./arch/mips/lib/bitops.c, plus these iconique friends:

okay that's the whole thing 🫢 β€” source/version is ./arch/mips/lib, dated October 2026, and the page is __mips_test_and_change_bit(9). slay.

πŸ“¦ where this page comes from