Merge tag 'soc-drivers-6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-block.git] / scripts / atomic / kerneldoc / add_unless
CommitLineData
ad811070
MR
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.
6dfee110 13 * Otherwise, @v is not modified and relaxed ordering is provided.
ad811070
MR
14 *
15 * ${desc_noinstr}
16 *
17 * ${desc_return}
18 */
19EOF