raw_atomic_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– raw_atomic_read(9) πŸ’–

okay bestie, welcome to the Kernel API Manual page for raw_atomic_read(9) β€” yes, the manual name is folded in right here at the top, because we are doing this cute style. This is the atomic load with relaxed ordering moment. ✨


🌸 NAME 🌸

raw_atomic_read β€” atomic load with relaxed ordering. 🫢


✨ SYNOPSIS ✨

int raw_atomic_read (const atomic_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • v β€” pointer to atomic_t. That's the thing you're pointing at, bestie. πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

Atomically loads the value of v with relaxed ordering. It's giving β€œload the atomic, but relaxed.” 😌

Safe to use in noinstr code; prefer atomic_read elsewhere. 🫑

So yes: noinstr? Safe, bestie. Everywhere else? Prefer atomic_read. Noted. πŸ’–


⭐ RETURN ⭐

The value loaded from v. That's it, that's the return. πŸŽ€


🌈 SEE ALSO 🌈

  • Kernel file ./include/linux/atomic/atomic-arch-fallback.h β€” the source file, bestie. 🫢

the raw_atomic crew said β€œwe're here too”:

and the raw_atomic64 crew pulled up too:


okay that's the whole page, bestie. The footer energy is source/version ./include/linux/atomic and date October 2026. Mwah πŸ’‹

πŸ“¦ where this page comes from