Query: atomic_add_unless
OS: suse
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ATOMIC_ADD_UNLESS(9) Driver Basics ATOMIC_ADD_UNLESS(9)NAMEatomic_add_unless - add unless the number is already a given valueSYNOPSISint atomic_add_unless(atomic_t * v, int a, int u);ARGUMENTSv pointer of type atomic_t a the amount to add to v... u ...unless v is equal to u.DESCRIPTIONAtomically adds a to v, so long as v was not already u. Returns non-zero if v was not u, and zero otherwise.COPYRIGHTKernel Hackers Manual 2.6. July 2010 ATOMIC_ADD_UNLESS(9)