raw_atomic64_inc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– raw_atomic64_inc πŸ’–

okay so real talk, this one's straight out of the Kernel API Manual, and it's like... the smallest little guy with the biggest job? bestie, it bumps a 64-bit atomic counter by one and does not make a whole thing of it. relaxed ordering, no drama, no extra memory-barrier theater. we love a low-maintenance icon. πŸ’…


✨ NAME ✨

raw_atomic64_inc β€” atomic increment with relaxed ordering πŸŽ€


🌸 SYNOPSIS 🌸

void raw_atomic64_inc (atomic64_t *v );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • v β€” pointer to atomic64_t. yeah. that's the whole argument list. she's got one (1) parameter and she's thriving. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

Atomically updates v to (v + 1) with relaxed ordering. so like, the increment totally happens as one atomic little moment, but nobody's out here ordering it around your other memory ops β€” relaxed means relaxed, no cap. πŸ§˜β€β™€οΈ

πŸ’€ important bestie note: this one is safe to use in noinstr code. but prefer atomic64_inc elsewhere β€” raw_atomic64_inc is the specialist you call when you're in the no-instrumentation zone, not your everyday default. iykyk.

⭐ RETURN ⭐

Nothing. void. she returns to the void and the void is fine with it. πŸ•³οΈβœ¨


πŸ‘‘ SEE ALSO πŸ‘‘

okay so first things first, the source of truth lives right here in the kernel tree:

  • ./include/linux/atomic/atomic-arch-fallback.h

and now... the family reunion 😭 there are so many of them and i'm obsessed with every single one. 32-bit girlies first, then the 64-bit royalty.

πŸ“ the raw_atomic_* crew (32-bit)

πŸ’œ read & set

πŸ’œ add

πŸ’œ sub

πŸ’œ inc

πŸ’œ dec

πŸ’œ the bitwise girlies (and / andnot / or / xor)

πŸ’œ exchange & compare-and-swap court

πŸ’œ tests, negatives & unless-es


🌈 the raw_atomic64_* crew (64-bit β€” yes, our people)

πŸŽ€ read & set

πŸŽ€ add

πŸŽ€ sub

πŸŽ€ inc β€” and notice who's not in her own SEE ALSO list πŸ’€ (it's this page. main character behavior)

πŸŽ€ dec

πŸŽ€ the bitwise girlies, 64-bit edition

πŸŽ€ exchange & compare-and-swap, but bigger

πŸŽ€ tests, negatives & unless-es, 64-bit flavor


🫢 friendly reminder bestie: that's the whole fam, nobody left behind. go read them, they're all (9) sections and they all ate. ✨

okay and finally, the little sign-off credits moment 🎬 this page comes to you from the kernel source path ./include/linux/atomic, dated October 2026, and it's the man page for raw_atomic64_inc(9). mwah, go increment something atomically. πŸ“πŸ’œπŸ§š

πŸ“¦ where this page comes from