1ATOMIC64_XCHG(9) Driver Basics ATOMIC64_XCHG(9)
23
4
NAME
6atomic64_xchg - xchg atomic64 variable
7
SYNOPSIS
9u64 atomic64_xchg(atomic64_t * ptr, u64 new_val);
10
ARGUMENTS
12ptr
13pointer to type atomic64_t
1415
new_val
16value to assign
17
DESCRIPTION
19Atomically xchgs the value of ptr to new_val and returns the old value.
20
COPYRIGHT
22Kernel Hackers Manual 2.6. June 2019 ATOMIC64_XCHG(9)