atomic64_fetch_xor_relaxed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… atomic64_fetch_xor_relaxed(9) β€” a Kernel API Manual moment πŸ’…

okay so bestie, welcome to the Kernel API Manual page for atomic64_fetch_xor_relaxed(9). it’s giving β€œatomic bitwise XOR with relaxed ordering” and it is literally right here. no cap.

πŸŽ€ NAME πŸŽ€

atomic64_fetch_xor_relaxed β€” atomic bitwise XOR with relaxed ordering.

✨ SYNOPSIS ✨

s64 atomic64_fetch_xor_relaxed (s64 i , atomic64_t *v );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • i β€” an s64 value.
  • v β€” pointer to atomic64_t.

πŸ’– DESCRIPTION πŸ’–

okay so what it does: atomically updates v to (v ^ i) with relaxed ordering. the way that (v ^ i) glow-up happens atomically? iconic. and the ordering is relaxed β€” that’s in the name, bestie.

🚨 unsafe to use in noinstr code β€” use raw_atomic64_fetch_xor_relaxed there instead. fr fr, do not skip this one.

🌈 RETURN 🌈

the original value of v. that’s the return. periodt.

πŸ‘‘ SEE ALSO πŸ‘‘


πŸ’– that’s the whole vibe, bestie β€” source/version ./include/linux/atomic, dated October 2026, atomic64_fetch_xor_relaxed(9) main character energy only βœ¨πŸ’…

πŸ“¦ where this page comes from