raw_atomic_long_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– raw_atomic_long_read(9) β€” Kernel API Manual πŸ’–

okay bestie, welcome to the Kernel API Manual page for raw_atomic_long_read(9). This is the raw, relaxed-order atomic-load girlie. She's lowkey iconic and very specific about the vibe. ✨


🌸 NAME 🌸

raw_atomic_long_read β€” atomic load with relaxed ordering πŸ’…

✨ SYNOPSIS ✨

long raw_atomic_long_read (const atomic_long_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • v β€” pointer to atomic_long_t. That's it. That's the whole argument. 🫢

πŸ’… DESCRIPTION πŸ’…

So like, raw_atomic_long_read atomically loads the value of v with relaxed ordering. No cap. It's literally the raw atomic long read.

It's safe to use in noinstr code; prefer atomic_long_read elsewhere. Yes bestie, that β€œelsewhere” is doing a lot of work β€” don't make raw_atomic_long_read your default main character unless you're in the noinstr zone. πŸ’€

Vibe check: the page says safe in noinstr code and prefer atomic_long_read elsewhere. Keep that energy. 🫑

πŸ¦‹ RETURN πŸ¦‹

It returns the value loaded from v. Periodt. πŸ’–

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./include/linux/atomic/atomic-long.h


Cute little footer sign-off: the source/version is ./include/linux/atomic, the date is October 2026, and the footer title is raw_atomic_long_read(9). Bye bestie, go read those atomics responsibly πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from