__mips_test_and_clear_bit(9)
π __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:
__mips_set_bit(9)__mips_clear_bit(9)__mips_change_bit(9)__mips_test_and_set_bit_lock(9)__mips_test_and_change_bit(9)
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
- 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