1__ATOMIC_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 the old
23       value of v.
24
26Kernel Hackers Manual 3.10         June 2019            __ATOMIC_ADD_UNLESS(9)
Impressum