raw_atomic_long_xor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, meet raw_atomic_long_xor from the Kernel API Manual β€” it's the atomic bitwise XOR with relaxed ordering situation. Very demure, very atomic, very relaxed. πŸ’–


✨ SYNOPSIS ✨

void raw_atomic_long_xor (long i , atomic_long_t *v );

🌸 ARGUMENTS 🌸

  • i β€” a long value. This is the XOR buddy. 🫢
  • v β€” pointer to atomic_long_t. This is the thing getting updated. πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

Atomically updates v to (v ^ i) with relaxed ordering. That's the whole plot, no cap. πŸŽ€

Safety note straight from the page: this is safe to use in noinstr code; prefer atomic_long_xor elsewhere. iykyk πŸ’…

πŸ“ RETURN πŸ“

Nothing. Not 0, not a little success token, literally nothing. 😭🫢


🧚 SEE ALSO 🧚

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

The whole atomic-long friend group is here, periodt:


source/version: ./include/linux/atomic Β· date: October 2026 Β· footer title: raw_atomic_long_xor(9) πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from