local_add_unless(9)
π 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 typelocal_t, periodt. π«Άaβ the amount to add tol... πuβ ...unlesslis equal tou. π
π 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 π
- Kernel file:
./arch/x86/include/asm/local.hπ local_sub_and_test(9)local_dec_and_test(9)local_inc_and_test(9)local_add_negative(9)local_add_return(9)
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
- 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