atomic_inc(9)
π NAME π
atomic_inc β from the Kernel API Manual, bestie, and the name line says Atomic incrememnt (yes, literally that spelling on the page, and we're keeping it ππ
).
β¨ SYNOPSIS β¨
int atomic_inc (atomic_t *addr );
π ARGUMENTS π
addrβ the address of the variable to increment. That's the whole assignment, no cap π«Ά
πΈ DESCRIPTION πΈ
It returns the new value of addr->val. Periodt. That's the described behavior, and it ate πβ¨
π¦ SEE ALSO π¦
- Kernel file:
./tools/testing/selftests/futex/include/atomic.hβ the file named in the original, lowkey iconic π§ atomic_cmpxchg(9)atomic_dec(9)atomic_set(9)
Go give those a vibe check too, bestie π
Signed off from ./tools/testing/selftests/fute... in October 2026, still repping atomic_inc(9) π
π
π¦ 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