ATOMIC_SUB_RETURN(9) Driver Basics ATOMIC_SUB_RETURN(9)

NAME atomic_sub_return - subtract integer and return

SYNOPSIS int atomic_sub_return(int i, atomic_t * v);

ARGUMENTS i integer value to subtract

v pointer of type atomic_t

DESCRIPTION Atomically subtracts i from v and returns v - i

COPYRIGHT Kernel Hackers Manual 2.6. September 2010 ATOMIC_SUB_RETURN(9)