ATOMIC_SUB(9) Driver Basics ATOMIC_SUB(9)

NAME atomic_sub - subtract integer from atomic variable

SYNOPSIS void atomic_sub(int i, atomic_t * v);

ARGUMENTS i integer value to subtract

v pointer of type atomic_t

DESCRIPTION Atomically subtracts i from v.

COPYRIGHT Kernel Hackers Manual 2.6. May 2011 ATOMIC_SUB(9)