raw_atomic64_set_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– raw_atomic64_set_release(9) πŸ’–

okay so bestie, this one's from the Kernel API Manual and it is so much chiller than it looks. Deep breath, you're gonna slay this 🫢


🌸 NAME 🌸

raw_atomic64_set_release β€” atomic set, but make it release ordered ✨


πŸŽ€ SYNOPSIS πŸŽ€

void raw_atomic64_set_release (atomic64_t *v , s64 i );

like, that's the whole thing. two args, no return, no drama πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • v β€” pointer to atomic64_t. this is the thing we're setting, bestie πŸ‘‘
  • i β€” the s64 value you're assigning to it. that's the new number going in πŸ“

πŸ’œ DESCRIPTION πŸ’œ

So the vibe is: this atomically sets v to i, with release ordering. Atomic meaning it happens as one whole thing, no half-stepping, no other thread catching you mid-edit πŸ™ˆ and release ordering doing its memory-barrier thing on the way out ✨

Also, real talk: this is safe to use in noinstr code β€” that's its whole personality. Everywhere else, prefer atomic64_set_release. That's the non-raw version, and she eats, no cap πŸ”₯

ngl this is the "I have a very specific situation" function. If you're not in noinstr code, go use atomic64_set_release and let this icon rest πŸ’€

⭐ RETURN ⭐

Nothing. literally nothing. it's giving "void" main character energy β€” she does the job and leaves, periodt πŸ’…


🌈 SEE ALSO 🌈

fr fr the whole atomic family showed up to this party. Located in the kernel file ./include/linux/atomic/atomic-arch-fallback.h 🧚 and here's the FULL guest list, no skipping, we don't do that here πŸ’–


and that's the page, bestie πŸŽ€ this lil doc lives at ./include/linux/atomic and it's dated October 2026 β€” so like, mark your calendars, mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from