1ATOMIC_ADD_NEGATIVE(9) Driver Basics ATOMIC_ADD_NEGATIVE(9)
23
4
NAME
6atomic_add_negative - add and test if negative
7
SYNOPSIS
9int atomic_add_negative(int i, atomic_t * v);
10
ARGUMENTS
12i
13integer value to add
1415
v
16pointer of type atomic_t
17
DESCRIPTION
19Atomically adds i to v and returns true if the result is negative, or
20false when result is greater than or equal to zero.
21
COPYRIGHT
23Kernel Hackers Manual 3.10 June 2019 ATOMIC_ADD_NEGATIVE(9)