xref: /openbmc/linux/scripts/atomic/kerneldoc/xchg (revision ad811070)
1*ad811070SMark Rutlandcat <<EOF
2*ad811070SMark Rutland/**
3*ad811070SMark Rutland * ${class}${atomicname}() - atomic exchange with ${desc_order} ordering
4*ad811070SMark Rutland * @v: pointer to ${atomic}_t
5*ad811070SMark Rutland * @new: ${int} value to assign
6*ad811070SMark Rutland *
7*ad811070SMark Rutland * Atomically updates @v to @new with ${desc_order} ordering.
8*ad811070SMark Rutland *
9*ad811070SMark Rutland * ${desc_noinstr}
10*ad811070SMark Rutland *
11*ad811070SMark Rutland * Return: The original value of @v.
12*ad811070SMark Rutland */
13*ad811070SMark RutlandEOF
14