raw_atomic_long_andnot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

raw_atomic_long_andnot(9) πŸ’…

okay so bestie, welcome to raw_atomic_long_andnot(9) from the Kernel API Manual β€” yes, that's the manual name, folded in right here like a cute little name tag πŸŽ€ This page is about raw_atomic_long_andnot, and it's giving atomic bitwise AND NOT with relaxed ordering, periodt.

✨ NAME ✨

raw_atomic_long_andnot β€” atomic bitwise AND NOT with relaxed ordering πŸ’–

πŸŽ€ SYNOPSIS πŸŽ€

void raw_atomic_long_andnot (long i , atomic_long_t *v );

🌸 ARGUMENTS 🌸

  • i β€” a long value. That's the long value, bestie, exactly as the page says.
  • v β€” pointer to atomic_long_t. That's the atomic long getting updated.

πŸ¦‹ DESCRIPTION πŸ¦‹

Atomically updates v to (v & ~i) with relaxed ordering. So the update is atomic, and the ordering is relaxed β€” that's the whole vibe, no cap.

It's safe to use in noinstr code; prefer atomic_long_andnot elsewhere. Like, for real: noinstr is where this one is safe, and elsewhere you should prefer atomic_long_andnot. 🫢

πŸ’… RETURN πŸ’…

Nothing. Literally nothing. The return value is Nothing. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./include/linux/atomic/atomic-long.h β€” that's the path, keep it in your notes.


xoxo, this page is raw_atomic_long_andnot(9) from ./include/linux/atomic, dated October 2026 β€” bye bestie, mwah πŸ’–βœ¨

πŸ“¦ where this page comes from