atomic_read_acquire(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

atomic_read_acquire(9) β€” straight from the Kernel API Manual, bestie. It's literally an atomic load with acquire ordering. Slay. ✨

✨ SYNOPSIS ✨

int atomic_read_acquire (const atomic_t *v );

🧸 ARGUMENTS 🧸

  • v β€” pointer to atomic_t. That's the whole argument. Iconic. πŸ’…

🌸 DESCRIPTION 🌸

Okay so here's the tea: atomic_read_acquire atomically loads the value of v with acquire ordering. That's it, that's the vibe. 🫢

⚠️ Warning bestie: it's unsafe to use in noinstr code β€” use raw_atomic_read_acquire there instead. No cap, don't mix that up. πŸ’€

πŸ”₯ RETURN πŸ”₯

The value loaded from v. Simple, cute, returned to you. ✨

πŸ‘‘ SEE ALSO πŸ‘‘

First up, the kernel file situation: ./include/linux/atomic/atomic-instrumented.h. That's where this lives. Then the whole see-also group chat β€” yes, every single one, because we don't skip the boring parts in this house. πŸ’…

πŸ¦‹ atomic (int) crew πŸ¦‹

πŸŽ€ atomic64 crew πŸŽ€

🌈 atomic_long crew 🌈


xoxo, this page ships from ./include/linux/atomic and is dated October 2026 πŸ’…

πŸ“¦ where this page comes from