atomic64_fetch_or(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… atomic64_fetch_or(9) β€” Kernel API Manual πŸ’…

🌸 NAME 🌸

atomic64_fetch_or β€” atomic bitwise OR with full ordering ✨

πŸŽ€ SYNOPSIS πŸŽ€

the signature is literally:

s64 atomic64_fetch_or (s64 i , atomic64_t *v );

πŸ¦‹ ARGUMENTS πŸ¦‹

okay bestie, you pass in two things:

  • i β€” an s64 value. This is the value you're OR-ing in. πŸ“
  • v β€” a pointer to atomic64_t. This is the atomic target that gets updated. πŸ’…

πŸ”₯ DESCRIPTION πŸ”₯

okay so it atomically updates v to (v | i) with full ordering. That's the whole vibe β€” no cap. ✨

⚠️ Unsafe to use in noinstr code; use raw_atomic64_fetch_or there. like, the manual literally says unsafe, bestie β€” do not ignore this. πŸ’€

⭐ RETURN ⭐

The original value of v. You get the before pic, not the after. πŸ“ΈπŸ’–

🌈 SEE ALSO 🌈

okay so the kernel file is ./include/linux/atomic/atomic-instrumented.h, and this SEE ALSO list is a whole extended friend group. Every single reference is here, no cap: πŸ’–

πŸ’« the atomic_* squad

πŸ¦‹ the atomic64_* squad

πŸŽ€ the atomic_long_* squad


made with πŸ’– in the ./include/linux/atomic source/version era β€” October 2026 β€” still serving atomic64_fetch_or(9) realness 🫢✨

πŸ“¦ where this page comes from