atomic_set_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… atomic_set_release β€” from the Kernel API Manual, section 9

okay bestie, welcome to atomic_set_release(9) β€” yes it's a section 9 kernel API manual page, yes it's short, and yes it's lowkey iconic for how much it does with so little. sit down, get comfy, let's go 🫢


✨ NAME ✨

atomic_set_release β€” the atomic set that comes with release ordering, no cap πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void atomic_set_release (atomic_t *v , int i );

🌸 ARGUMENTS 🌸

  • v β€” pointer to atomic_t. yeah, the whole vibe lives behind this pointer ✨
  • i β€” int value to assign. that's the number going in, periodt.

πŸŽ€ DESCRIPTION πŸŽ€

So here's the tea πŸ“: this bad boy atomically sets v to i, and it does it with release ordering. atomic ✨ plus ordering 🌈, all in one call.

⚠️ Important warning, bestie, do not skip this: it is unsafe to use in noinstr code β€” use raw_atomic_set_release there instead. fr fr, that's not optional. in noinstr you take the raw one, no exceptions πŸ’€

⭐ RETURN ⭐

Nothing. literally nothing. it returns void β€” she gives, she doesn't take πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

okay this list is the main character of the whole page, ngl. the kernel file it all lives in is ./include/linux/atomic/atomic-instrumented.h β€” and here is every single one of her friends, in order, no skips 🧚

that's the whole friend group, every last one, no gatekeeping πŸ’œ


mwah πŸ’‹ this page lives under ./include/linux/atomic and the version stamp says October 2026, and honestly? she's timeless. go forth and set atomically, bestie β€” with release ordering, and never in noinstr. iykyk 🌟

πŸ“¦ where this page comes from