raw_atomic_l...dec_and_test(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– raw_atomic_l...dec_and_test(9) πŸ’–

okay so this is the raw_atomic_l...dec_and_test(9) page, and the manual name is the Kernel API Manual β€” folded in right here at the top because we're cute and organized. πŸ’…βœ¨


🌸 NAME 🌸

raw_atomic_long_dec_and_test β€” atomic decrement and test if zero with full ordering. That's the whole assignment, bestie. πŸŽ€


🌈 SYNOPSIS 🌈

bool raw_atomic_long_dec_and_test (atomic_long_t *v );

like, that's the exact signature. no notes. πŸ’–


🫢 ARGUMENTS 🫢

  • v β€” pointer to atomic_long_t. That's it. That's the argument. She's a pointer, she points at an atomic_long_t, iconic. ✨

πŸ’« DESCRIPTION πŸ’«

Atomically updates v to (v - 1) with full ordering. Yes bestie, atomic, and yes, full ordering β€” the full-order version, periodt. πŸ”₯

Safe to use in noinstr code; prefer atomic_long_dec_and_test elsewhere. So in noinstr land she's safe, and outside it the manual says prefer atomic_long_dec_and_test, okay? πŸ’…


πŸ‘‘ RETURN πŸ‘‘

true if the resulting value of v is zero, false otherwise. That's the test part, bestie β€” the resulting value is zero or it isn't. πŸ’–


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./include/linux/atomic/atomic-long.h. That's the home base, the source file, the origin story. 🌸

and here's the whole extended atomic-long family, every single one, no cap:


okay that's the page! source/version check: this one lives at ./include/linux/atomic, the date stamp is October 2026, and the page tag is raw_atomic_l...dec_and_test(9). bye bestie, go be iconic πŸ’–βœ¨

πŸ“¦ where this page comes from