HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-26-0-120 6.17.0-1009-aws #9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //usr/src/linux-headers-6.17.0-1009-aws/scripts/atomic/kerneldoc/add_unless
if [ -z "${pfx}" ]; then
	desc_return="Return: @true if @v was updated, @false otherwise."
fi

cat <<EOF
/**
 * ${class}${atomicname}() - atomic add unless value with ${desc_order} ordering
 * @v: pointer to ${atomic}_t
 * @a: ${int} value to add
 * @u: ${int} value to compare with
 *
 * If (@v != @u), atomically updates @v to (@v + @a) with ${desc_order} ordering.
 * Otherwise, @v is not modified and relaxed ordering is provided.
 *
 * ${desc_noinstr}
 *
 * ${desc_return}
 */
EOF