xref: /linux/scripts/atomic/kerneldoc/dec_if_positive (revision 0c7c237b1c35011ef0b8d30c1d5c20bc6ae7b69b)
1cat <<EOF
2/**
3 * ${class}${atomicname}() - atomic decrement if positive with ${desc_order} ordering
4 * @v: pointer to ${atomic}_t
5 *
6 * If (@v > 0), atomically updates @v to (@v - 1) with ${desc_order} ordering.
7 *
8 * ${desc_noinstr}
9 *
10 * Return: The old value of (@v - 1), regardless of whether @v was updated.
11 */
12EOF
13