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

NAME

6       atomic_add_unless - add unless the number is already a given value
7

SYNOPSIS

9       int atomic_add_unless(atomic_t * v, int a, int u);
10

ARGUMENTS

12       v
13           pointer of type atomic_t
14
15       a
16           the amount to add to v...
17
18       u
19           ...unless v is equal to u.
20

DESCRIPTION

22       Atomically adds a to v, so long as v was not already u. Returns
23       non-zero if v was not u, and zero otherwise.
24
26Kernel Hackers Manual 2.6.         June 2019              ATOMIC_ADD_UNLESS(9)
Impressum