raw_atomic_long_set_release(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… raw_atomic_long_set_release(9) β€” Kernel API Manual πŸŽ€

okay so bestie, welcome to the raw_atomic_long_set_release page from the Kernel API Manual ✨ this one's a lil short-and-sweet icon, but she's got a whole squad of friends in SEE ALSO, so buckle up 🫢


✨ NAME ✨

raw_atomic_long_set_release β€” atomic set with release ordering πŸ”₯


🌸 SYNOPSIS 🌸

void raw_atomic_long_set_release (atomic_long_t *v , long i );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • v β€” pointer to atomic_long_t πŸ‘‘ like, the address of the thing you're about to set
  • i β€” long value to assign πŸ“ the actual number going in

πŸ’œ DESCRIPTION πŸ’œ

So basically: it atomically sets v to i with release ordering ✨ that's the whole vibe. Atomic, release-y, done.

And the tea β˜• β€” it's safe to use in noinstr code, which is kind of a big deal. But outside of that, you should prefer atomic_long_set_release instead. So like, use this one when you need the noinstr-safe raw version, and use the normal one everywhere else πŸ’…


⭐ RETURN ⭐

Nothing. Nada. Zero. It returns void, so don't go looking for a return value, bestie 😭


🌈 SEE ALSO 🌈

Not me about to drop the entire friend group πŸ˜­πŸ’€ this page lists a lot of siblings, and they all live in the kernel file ./include/linux/atomic/atomic-long.h πŸŽ€


okay that's genuinely the whole list, i counted, i did not skip a single one 🫢


and that's a wrap, bestie!! this page comes from the kernel source file ./include/linux/atomic and it's dated October 2026 β€” so like, future vibes βœ¨πŸ’– thanks for reading, go set some atomics with release ordering, and slay πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from