__mips_test_and_clear_bit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __mips_test_and_clear_bit(9) β€” Kernel API Manual

okay bestie, buckle up, we're in the MIPS bitops corner of the kernel and honestly? it's giving iconic low-level energy ✨


🌸 NAME 🌸

__mips_test_and_clear_bit β€” clear a bit and return its old value. literally that's it, that's the whole vibe πŸŽ€

And to be super clear (pun fully intended, i'm hilarious): this one gets called by test_and_clear_bit() whenever that function can't find a faster solution. it's the fallback bestie, the reliable one, the one who shows up when nobody else can 🫢


✨ SYNOPSIS ✨

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

πŸ¦‹ ARGUMENTS πŸ¦‹

  • nr β€” the bit you wanna clear πŸ”₯ like, which one. this one.
  • addr β€” the address to count from πŸ‘‘ this is where the counting starts, bestie.

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./arch/mips/lib/bitops.c β€” that's the home base fr fr 🏠

and the whole friend group, all matching, all iconic:


ngl, if you're reading this page you're probably already deep in the bit-twiddling trenches. vibe check passed, bestie πŸ’… go clear that bit and get that old value, you ate πŸ“

and that's the tea β˜• β€” ./arch/mips/lib, October 2026, __mips_test_and_clear_bit(9). mwah, ily, bye πŸ’–πŸ§š

πŸ“¦ where this page comes from