Atomically exchanges a 64-bit value with the 64-bit value in the specified memory location.
#include <stdlib.h> uint64_t atomic64_xchg ( uint64_t *addr, uint64_t value);
(IN) Points to the memory location for the operation.
(IN) Specifies the value to exchange.
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.