1ATOMIC_ADD_NEGATIVE(9)           Driver Basics          ATOMIC_ADD_NEGATIVE(9)
2
3
4

NAME

6       atomic_add_negative - add and test if negative
7

SYNOPSIS

9       int atomic_add_negative(int i, atomic_t * v);
10

ARGUMENTS

12       i
13           integer value to add
14
15       v
16           pointer of type atomic_t
17

DESCRIPTION

19       Atomically adds i to v and returns true if the result is negative, or
20       false when result is greater than or equal to zero.
21
23Kernel Hackers Manual 2.6.       November 2011          ATOMIC_ADD_NEGATIVE(9)
Impressum