__mips_test_...set_bit_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __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:

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