xref: /linux/scripts/atomic/kerneldoc/add_unless (revision 6d9b262afe0ec1d6e0ef99321ca9d6b921310471)
1if [ -z "${pfx}" ]; then
2	desc_return="Return: @true if @v was updated, @false otherwise."
3fi
4
5cat <<EOF
6/**
7 * ${class}${atomicname}() - atomic add unless value with ${desc_order} ordering
8 * @v: pointer to ${atomic}_t
9 * @a: ${int} value to add
10 * @u: ${int} value to compare with
11 *
12 * If (@v != @u), atomically updates @v to (@v + @a) with ${desc_order} ordering.
13 * Otherwise, @v is not modified and relaxed ordering is provided.
14 *
15 * ${desc_noinstr}
16 *
17 * ${desc_return}
18 */
19EOF
20