summaryrefslogtreecommitdiffstats
path: root/scripts/atomic/kerneldoc/try_cmpxchg
blob: 296553206c06e18c8a34da4efe79ecef66ecc89e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
cat <<EOF
/**
 * ${class}${atomicname}() - atomic compare and exchange with ${desc_order} ordering
 * @v: pointer to ${atomic}_t
 * @old: pointer to ${int} value to compare with
 * @new: ${int} value to assign
 *
 * If (@v == @old), atomically updates @v to @new with ${desc_order} ordering.
 * Otherwise, updates @old to the current value of @v.
 *
 * ${desc_noinstr}
 *
 * Return: @true if the exchange occured, @false otherwise.
 */
EOF