raw_atomic_read_acquire(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… raw_atomic_read_acquire(9) β€” from the Kernel API Manual, bestie πŸ’…

✨ NAME ✨

raw_atomic_read_acquire β€” it's an atomic load, but make it acquire ordering. No cap, that's literally the whole vibe.


🌸 SYNOPSIS 🌸

int raw_atomic_read_acquire (const atomic_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • v β€” a pointer to an atomic_t. Like, the address of your atomic little bestie. Point at it and this function will read it. 😌

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so it atomically loads the value of v with acquire ordering. That's the tea. β˜•βœ¨

It's safe to use in noinstr code β€” yes, that's a real thing, and it slays. But lowkey, prefer atomic_read_acquire everywhere else. This one is for when you're in the no-instrumentation zone, fr fr.


πŸ’– RETURN πŸ’–

You get the value that was loaded from v. That's it. That's the whole return. Go off. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./include/linux/atomic/atomic-arch-fallback.h β€” iconic, honestly.

And please, bestie, the whole atomic family is here. Go stan:


xoxo, your girl πŸ’… dropping this from ./include/linux/atomic, October 2026, page raw_atomic_read_acquire(9). Periodt. 🫢✨

πŸ“¦ where this page comes from