raw_atomic_..._and_acquire(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… raw_atomic_..._and_acquire(9) β€” Kernel API Manual ✨

πŸŽ€ NAME πŸŽ€

raw_atomic_long_fetch_and_acquire β€” atomic bitwise AND with acquire ordering. Slay. πŸ’…

✨ SYNOPSIS ✨

long raw_atomic_long_fetch_and_acquire (long i , atomic_long_t *v );

🫢 ARGUMENTS 🫢

  • i β€” a long value. Bestie, it's the thing getting AND-ed in.
  • v β€” pointer to atomic_long_t. This is the atomic long being updated.

πŸ’– DESCRIPTION πŸ’–

Okay so literally: this atomically updates v to (v & i) with acquire ordering. No cap, that's the whole vibe. 🌸

It's safe to use in noinstr code; prefer atomic_long_fetch_and_acquire elsewhere. πŸ‘‘

⭐ RETURN ⭐

The original value of v. Like, the value it had before the AND happened. Iconic. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

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

The whole raw-atomic-long squad, fr fr β€” every single ref right here: πŸ¦‹


Catch u later, bestie β€” signed off from the ./include/linux/atomic source/version, October 2026, for raw_atomic_..._and_acquire(9). Mwah πŸ’œπŸ«Άβœ¨

πŸ“¦ where this page comes from