atomic_long_dec(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… atomic_long_dec β€” atomic decrement with relaxed ordering

okay so this is the manual page for atomic_long_dec(9) from the Kernel API Manual and she is everything you need to know about subtracting one (1) singular unit from an atomic long ✨ bestie, let's go 🫢


🌸 NAME 🌸

atomic_long_dec β€” atomic decrement with relaxed ordering πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

void atomic_long_dec (atomic_long_t *v );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • v β€” pointer to atomic_long_t (like, the address of the thing we're about to subtract from, no cap) 🎯

πŸ”₯ DESCRIPTION πŸ”₯

Atomically updates v to (v - 1) with relaxed ordering. that's it, that's the whole vibe πŸ’€ one function, one job, she ate πŸ”₯

⚠️ Unsafe to use in noinstr code β€” use raw_atomic_long_dec there instead, fr fr. do not test her in noinstr land, she will not survive πŸ™ˆ

⭐ RETURN ⭐

Nothing. literally nothing, she returns void, no value, no drama, main character energy of an empty handoff πŸ’œ


πŸ’– SEE ALSO πŸ’–

the kernel file is ./include/linux/atomic/atomic-instrumented.h β€” that's where the family lives 🏠 and here's the whole entire group chat, everybody's here, no one got left on read:

🌈 the atomic_* girlies (int-sized)

πŸ¦‹ the atomic64_* besties (64-bit, bigger, still iconic)

πŸ‘‘ the atomic_long_* family (our girl's home turf)


and that's the whole page bestie πŸŽ€ source file is ./include/linux/atomic, dated October 2026 β€” go forth and decrement responsibly, mwah πŸ’‹βœ¨πŸ¦‹

πŸ“¦ where this page comes from