__ATOMIC_ADD_UNLESS(9) Driver Basics __ATOMIC_ADD_UNLESS(9)NAME__atomic_add_unless - add unless the number is already a given value
SYNOPSIS
int __atomic_add_unless(atomic_t * v, int a, int u);
ARGUMENTS
v
pointer of type atomic_t
a
the amount to add to v...
u
...unless v is equal to u.
DESCRIPTION
Atomically adds a to v, so long as v was not already u. Returns the old
value of v.
COPYRIGHTKernel Hackers Manual 3.8. June 2014 __ATOMIC_ADD_UNLESS(9)