raw_atomic64..._inc_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ raw_atomic64..._inc_release(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’– this page is all about raw_atomic64_fetch_inc_release, and it's lowkey iconic: atomic increment, but make it release ordering. let's get into it 🫢


🌸 NAME 🌸

raw_atomic64_fetch_inc_release β€” atomic increment with release ordering ✨

πŸŽ€ SYNOPSIS πŸŽ€

s64 raw_atomic64_fetch_inc_release (atomic64_t *v );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • v β€” pointer to atomic64_t πŸ’…

πŸ’œ DESCRIPTION πŸ’œ

okay so this one atomically updates v to (v + 1) with release ordering. no cap, that's the whole move ✨

it's safe to use in noinstr code; prefer atomic64_fetch_inc_release elsewhere. like, if you're not in the noinstr zone, bestie, use the non-raw one πŸ’–

πŸ‘‘ RETURN πŸ‘‘

the original value of v β€” yep, you get the pre-increment value back, and it's giving "I was here before the +1" 😌

πŸ”₯ SEE ALSO πŸ”₯


mwah πŸ’‹ source/version: ./include/linux/atomic Β· date: October 2026 Β· page: raw_atomic64..._inc_release(9) β€” go forth and increment atomically, bestie 🫢✨

πŸ“¦ where this page comes from