Atomically adds a 32-bit value to the 32-bit value in the specified memory location and returns the original value.
#include <stdlib.h> unsigned long atomic_xchgadd ( unsigned long *addr, unsigned long value);
(IN) Points to the memory location for the operation.
(IN) Specifies the value to add.
Returns the original value in the memory location.
The memory location address is expected to be valid. If an invalid address is passed, the server will abend.