__mips_test_...set_bit_lock(9)
π
__mips_test_...set_bit_lock(9) β Kernel API Manual, bestie edition π
okay so welcome to the Kernel API Manual page for __mips_test_...set_bit_lock(9), and yes the title is literally abbreviated with dots because it's that long, and yes we're gonna get through it together. grab a strawberry drink π, this one's short and sweet.
β¨ NAME β¨
__mips_test_and_set_bit_lock β sets a bit and hands you back its old value, no cap. It's the fallback bestie: it's what gets called by test_and_set_bit_lock() when that function cannot find a faster solution. so like, it's the "fine, we'll do it the honest way" path π«Ά
πΈ SYNOPSIS πΈ
int __mips_test_and_set_bit_lock (unsigned long nr , volatile unsigned long *addr );
that's the whole signature, icon behavior, literally just two args π
π¦ ARGUMENTS π¦
nrβ the bit to set. like, which one. that one. βaddrβ the address to count from. that's it, that's the description, I don't make the rules π
π SEE ALSO π
the kernel file ./arch/mips/lib/bitops.c is where the magic lives, and it's giving main character energy. go meet the whole friend group:
__mips_set_bit(9)__mips_clear_bit(9)__mips_change_bit(9)__mips_test_and_clear_bit(9)__mips_test_and_change_bit(9)
they all live in the same file, they all have the same vibe, it's a whole squad π
lowkey a tiny page but highkey important β if test_and_set_bit_lock() can't speedrun it, this is who picks up the phone πβ¨
and that's the whole thing! signing off from ./arch/mips/lib, dated October 2026, in the __mips_test_...set_bit_lock(9) era β ate and left no crumbs, periodt ππ§ββοΈ
π¦ 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