ATOMIC_DEC_AND_TEST(9) Driver Basics ATOMIC_DEC_AND_TEST(9)NAMEatomic_dec_and_test - decrement and test
SYNOPSIS
int atomic_dec_and_test(atomic_t * v);
ARGUMENTS
v
pointer of type atomic_t
DESCRIPTION
Atomically decrements v by 1 and returns true if the result is 0, or
false for all other cases.
COPYRIGHTKernel Hackers Manual 3.8. June 2014 ATOMIC_DEC_AND_TEST(9)