atomic_inc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ¦‹

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