atomic_long_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

atomic_long_set β€” literally just atomically setting a long, but with relaxed ordering ✨

Ok so real talk, bestie: this page comes from the Kernel API Manual, and the whole thing lives in the kernel file ./include/linux/atomic/atomic-instrumented.h 🫢


🌸 SYNOPSIS 🌸

void atomic_long_set (atomic_long_t *v , long i );

πŸŽ€ ARGUMENTS πŸŽ€

  • v β€” pointer to atomic_long_t πŸ’– (the thing you're writing into)
  • i β€” long value to assign ⭐ (the thing you're putting in it)

πŸ¦‹ DESCRIPTION πŸ¦‹

Atomically sets v to i with relaxed ordering. That's it, that's the whole vibe. Simple, clean, main character energy πŸ‘‘

⚠️ Heads up, no cap: it's unsafe to use in noinstr code β€” use raw_atomic_long_set there instead. Don't be that girl who ignores this one, fr fr πŸ’€

🌈 RETURN 🌈

Nothing. Not a single thing. It returns void and it's thriving πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

The kernel file ./include/linux/atomic/atomic-instrumented.h β€” and like, an absolutely iconic amount of friends πŸ˜­πŸ’–


That's the whole page, bestie β€” sourced from ./include/linux/atomic, dated October 2026. Go set a long atomically, you absolute icon πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from