raw_atomic64_dec_return(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… raw_atomic64_dec_return β€” Kernel API Manual ✨

okay so bestie, welcome to the Kernel API Manual πŸŽ€ this one's a tiny little icon but she's lowkey important, so let's get into it πŸ’–


🌸 NAME 🌸

raw_atomic64_dec_return β€” atomic decrement with full ordering πŸ”₯


πŸ¦‹ SYNOPSIS πŸ¦‹

s64 raw_atomic64_dec_return (atomic64_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • v β€” pointer to atomic64_t πŸ’«

⭐ DESCRIPTION ⭐

Atomically updates v to (v - 1) with full ordering. periodt. πŸ’…

bestie listen πŸ‘€ β€” this one is safe to use in noinstr code; prefer atomic64_dec_return everywhere else. iykyk 🫢

πŸ‘‘ RETURN πŸ‘‘

The updated value of v. that's it, that's the whole reveal ✨


🌈 SEE ALSO 🌈

first up, the source file herself lives at kernel file ./include/linux/atomic/atomic-arch-fallback.h πŸ—‚οΈ

and now… the extended family 😭 she has a LOT of cousins. every single one, no cap:

🫢 the raw_atomic_* girlies

🌸 the add / sub pipeline

πŸ¦‹ inc & dec (her direct neighbors πŸ’œ)

🧚 bitwise besties

πŸ”₯ exchange & compare crowd

⭐ the test / unless club

πŸ‘‘ the raw_atomic64_* icons (64-bit main character energy)

πŸ’– 64-bit add / sub pipeline

πŸ“ 64-bit inc & dec

πŸ’œ 64-bit bitwise besties

πŸŽ€ 64-bit exchange & compare crowd

🌱 64-bit test / unless club


that's the whole squad πŸ’€ yes there really are that many. group chat is loud but she's worth it 🫢

and that's a wrap bestie!! 🌈 this little page came out of ./include/linux/atomic, dated October 2026, and it's filed under raw_atomic64_dec_return(9) in the Kernel API Manual πŸ’– slay, go decrement something atomically βœ¨πŸŽ€

πŸ“¦ where this page comes from