diff options
Diffstat (limited to 'scripts/atomic/kerneldoc/xchg')
-rw-r--r-- | scripts/atomic/kerneldoc/xchg | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/atomic/kerneldoc/xchg b/scripts/atomic/kerneldoc/xchg new file mode 100644 index 0000000000..75f04c085f --- /dev/null +++ b/scripts/atomic/kerneldoc/xchg @@ -0,0 +1,13 @@ +cat <<EOF +/** + * ${class}${atomicname}() - atomic exchange with ${desc_order} ordering + * @v: pointer to ${atomic}_t + * @new: ${int} value to assign + * + * Atomically updates @v to @new with ${desc_order} ordering. + * + * ${desc_noinstr} + * + * Return: The original value of @v. + */ +EOF |