1ATOMIC_INC_AND_TEST(9) Driver Basics ATOMIC_INC_AND_TEST(9)
23
4
NAME
6atomic_inc_and_test - increment and test
7
SYNOPSIS
9int atomic_inc_and_test(atomic_t * v);
10
ARGUMENTS
12v
13pointer of type atomic_t
14
DESCRIPTION
16Atomically increments v by 1 and returns true if the result is zero, or
17false for all other cases.
18
COPYRIGHT
20Kernel Hackers Manual 2.6. June 2019 ATOMIC_INC_AND_TEST(9)