1ATOMIC_SUB_AND_TEST(9) Driver Basics ATOMIC_SUB_AND_TEST(9)
23
4
NAME
6atomic_sub_and_test - subtract value from variable and test result
7
SYNOPSIS
9int atomic_sub_and_test(int i, atomic_t * v);
10
ARGUMENTS
12i
13integer value to subtract
1415
v
16pointer of type atomic_t
17
DESCRIPTION
19Atomically subtracts i from v and returns true if the result is zero,
20or false for all other cases.
21
COPYRIGHT
23Kernel Hackers Manual 3.10 June 2019 ATOMIC_SUB_AND_TEST(9)