atomic_sub

Name

atomic_sub --  subtract the 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. Note that the guaranteed useful range of an atomic_t is only 24 bits.