Query: __atomic_add_unless
OS: centos
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)NAME__atomic_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 the old value of v.COPYRIGHTKernel Hackers Manual 3.10 June 2014 __ATOMIC_ADD_UNLESS(9)