raw_atomic_long_dec(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 raw_atomic_long_dec(9) β€” Kernel API Manual 🌸

okay bestie, welcome to the raw_atomic_long_dec(9) page πŸ’… this is a Linux kernel API manual entry, and it's short, it's sweet, and it does exactly one thing. let's get into it ✨


πŸ’– NAME πŸ’–

raw_atomic_long_dec β€” atomic decrement with relaxed ordering

like, it decrements. atomically. with relaxed ordering. that's the whole vibe check πŸŽ€


⭐ SYNOPSIS ⭐

void raw_atomic_long_dec (atomic_long_t *v );
ngl that's it. that's the function. no cap 🫢

πŸ¦‹ ARGUMENTS πŸ¦‹

  • v β€” pointer to atomic_long_t πŸ”₯ that's the thing getting decremented, bestie. point at it, and it goes down by one.

🌈 DESCRIPTION 🌈

so here's the tea β˜• this function atomically updates v to (v - 1) with relaxed ordering. literally v - 1. in one atomic swoop. the way that it just... does the subtraction and nothing else is honestly iconic πŸ’…

and the relaxed part? that's the ordering, and relaxed is exactly what it says on the tin β€” that's the memory ordering you're signing up for here, no add-ons, no extras.

Safe to use in noinstr code; prefer atomic_long_dec elsewhere. 🫢 so like β€” inside noinstr code? yes, this one's fine, slay. everywhere else? bestie, go use atomic_long_dec instead, fr fr.


✨ RETURN ✨

Nothing. literally nothing. it's void. don't go looking for a return value, there isn't one πŸ™ˆ


πŸ‘‘ SEE ALSO πŸ‘‘

the whole atomic-long extended universe is below πŸ‘‡ every single sibling is invited to the function party πŸŽ€


and that's the page, bestie πŸ§šπŸ’œ mwah.

kisses from the kernel docs β€” this one lives at ./include/linux/atomic, dated October 2026, and it's page raw_atomic_long_dec(9) forever and always πŸ“βœ¨ periodt.

πŸ“¦ where this page comes from