atomic64_inc_return_acquire(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… atomic64_inc_return_acquire β€” Kernel API Manual, bestie edition ✨

okay so this is atomic64_inc_return_acquire(9) from the Kernel API Manual, and she is lowkey iconic πŸŽ€

🌸 NAME 🌸

atomic64_inc_return_acquire β€” atomic increment with acquire ordering ✨ (yes bestie, atomic + acquire, she's doing both 😌)

πŸ¦‹ SYNOPSIS πŸ¦‹

s64 atomic64_inc_return_acquire (atomic64_t *v );

πŸ’– ARGUMENTS πŸ’–

  • v β€” pointer to atomic64_t. that's it, that's the whole vibe. hand her a pointer and step back 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

So like β€” atomically updates v to (v + 1) with acquire ordering. the "atomically" part means no one can catch her mid-update, no cap πŸ”₯

⚠️ Unsafe to use in noinstr code; use raw_atomic64_inc_return_acquire there instead. fr fr do not skip this, noinstr is not the moment for the instrumented version πŸ’€

⭐ RETURN ⭐

The updated value of v. so you get the number after the bump, not before β€” main character behaviour honestly πŸ‘‘

🌈 SEE ALSO 🌈

Kernel file ./include/linux/atomic/atomic-instrumented.h β€” she lives there πŸ’…

🧚 the atomic_* girlies

πŸ“ the atomic64_* icons (her own family, obvs)

πŸ¦‹ the atomic_long_* cousins


okay and that's the whole page bestie, go forth and increment atomically 🫢✨

source file ./include/linux/atomic, dated October 2026, page atomic64_inc_return_acquire(9) β€” mwah, signing off πŸ’‹πŸŽ€

πŸ“¦ where this page comes from