atomic_long_set_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… atomic_long_set_release(9)

okay so this is atomic_long_set_release(9), straight out of the Kernel API Manual, and bestie… it's a whole vibe. it's small, it's mighty, it's giving "one job and she does it flawlessly." let's get into it 🫢


🌸 NAME

atomic_long_set_release β€” an atomic set, but make it release-ordered ✨


✨ SYNOPSIS

void atomic_long_set_release (atomic_long_t *v , long i );

πŸŽ€ ARGUMENTS

  • v β€” pointer to atomic_long_t. this is the thing you're writing into, she's the main character πŸ’…
  • i β€” the long value you're assigning. this is what goes in πŸ‘‘

πŸ’– DESCRIPTION

so basically: this atomically sets v to i, with release ordering. that's it, that's the whole slay. one write, atomically, with the ordering semantics handled for you 🌈

⚠️ real talk though β€” this is unsafe to use in noinstr code. if you're in noinstr land, use raw_atomic_long_set_release there instead. no cap, don't skip this one πŸ’€

πŸ¦‹ RETURN

Nothing. literally nothing. she does the thing and leaves, no receipts, no follow-up, periodt πŸ’œ


πŸ’« SEE ALSO

first up, the kernel file you'll wanna peek at: ./include/linux/atomic/atomic-instrumented.h πŸ“‚

and now… the entire friend group 😭 like genuinely the whole cast, buckle up:

and the 64-bit side of the family πŸ’«

and finally the long besties β€” aka OUR GIRL's home squad πŸ‘‘πŸ”₯


and that's the whole roster, bestie, we got through it together 🫢 iykyk πŸ’–

sign-off time: this page lives in ./include/linux/atomic, it's dated October 2026, and it's filed under atomic_long_set_release(9). go be atomic, go be released, periodt βœ¨πŸ‘‘πŸŽ€

πŸ“¦ where this page comes from