raw_atomic_l...inc_and_test(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so bestie, welcome to the raw_atomic_long_inc_and_test(9) page πŸ’– this is a raw atomic long situation and honestly? she's iconic. full manual name is Kernel API Manual, so you know she's official πŸ‘‘


🌸 NAME 🌸

raw_atomic_long_inc_and_test β€” atomic increment and test if zero with full ordering ⭐


πŸ¦‹ SYNOPSIS πŸ¦‹

bool raw_atomic_long_inc_and_test (atomic_long_t *v );

πŸŽ€ ARGUMENTS πŸŽ€

  • v β€” pointer to atomic_long_t πŸ’« that's your girl, the thing getting incremented

✨ DESCRIPTION ✨

so what she does is: atomically updates v to (v + 1) with full ordering πŸ”₯ like, all at once, no half-steps, no tea no shade. atomically. periodt.

also she's safe to use in noinstr code 🧚 which lowkey is her whole personality. but bestie, hear me β€” prefer atomic_long_inc_and_test elsewhere πŸ™ˆ this raw version is for the special noinstr situations, not your everyday vibe.


πŸ‘‘ RETURN πŸ‘‘

returns true if the resulting value of v is zero, false otherwise πŸ’€ simple as that, no cap.


🌈 SEE ALSO 🌈

first up, the kernel file she lives in β€” go say hi 🫢

  • Kernel file ./include/linux/atomic/atomic-long.h

and now the entire extended universe, aka the whole atomic_long family, in order, no skips, fr fr πŸ“:


and that's the whole page bestie, you ate πŸ’…βœ¨ mwah 🫢

this came from ./include/linux/atomic, dated October 2026, and it's filed under raw_atomic_l...inc_and_test(9) β€” go forth and increment responsibly πŸ˜­πŸ’–

πŸ“¦ where this page comes from