local_add_negative(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the local_add_negative(9) page from the Kernel API Manual β€” yes, that's the manual name, and this function is literally called local_add_negative, and it adds something then tells you if the result is negative. main character energy fr fr 🌸.

✨ SYNOPSIS ✨

bool local_add_negative (long i , local_t *l );

πŸŽ€ ARGUMENTS πŸŽ€

  • i β€” the integer value to add. that's it, that's the number going in πŸ’…
  • l β€” a pointer to type local_t. yes, local_t, not plain local β€” copy the type exactly, bestie 🫢

πŸ’« DESCRIPTION πŸ’«

so the way this works: it atomically adds i to l, then returns true if the result is negative, or false when the result is greater than or equal to zero. that's the whole description β€” no extra lore, just the atomic add and the true/false vibe check πŸ”₯.

🌈 SEE ALSO 🌈

go read those if you want the full local family lore πŸ‘‘

cute sign-off: the footer source/version is ./arch/x86/include/asm, dated October 2026. bye bestie, go add your negatives with confidence πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from