local_add_unless(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ local_add_unless(9) πŸŽ€

Okay so bestie, welcome to the Kernel API Manual page for local_add_unless(9) β€” it's giving tiny atomic-helper main character energy, and we're gonna get through it together, no cap. πŸ’–


🌸 NAME 🌸

local_add_unless β€” add unless the number is already a given value ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

bool local_add_unless (local_t *l , long a , long u );

πŸ“ ARGUMENTS πŸ“

  • l β€” a pointer of type local_t, periodt. 🫢
  • a β€” the amount to add to l... πŸ‘€
  • u β€” ...unless l is equal to u. πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

So the page says it atomically adds a to l, if v was not already u. Yes, the original really says v right there β€” I'm keeping it exactly as written, bestie, not me fixing anything. πŸ™ˆ

And it returns true if the addition was done. ✨


πŸ‘‘ SEE ALSO πŸ‘‘


Source/version: ./arch/x86/include/asm; date: October 2026. That's the cute little sign-off, bestie β€” local_add_unless(9), October 2026, slay. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from