summaryrefslogtreecommitdiffstats
path: root/scripts/atomic/kerneldoc/dec_and_test
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/atomic/kerneldoc/dec_and_test')
-rw-r--r--scripts/atomic/kerneldoc/dec_and_test12
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/atomic/kerneldoc/dec_and_test b/scripts/atomic/kerneldoc/dec_and_test
new file mode 100644
index 0000000000..71bbd23ce4
--- /dev/null
+++ b/scripts/atomic/kerneldoc/dec_and_test
@@ -0,0 +1,12 @@
+cat <<EOF
+/**
+ * ${class}${atomicname}() - atomic decrement and test if zero with ${desc_order} ordering
+ * @v: pointer to ${atomic}_t
+ *
+ * Atomically updates @v to (@v - 1) with ${desc_order} ordering.
+ *
+ * ${desc_noinstr}
+ *
+ * Return: @true if the resulting value of @v is zero, @false otherwise.
+ */
+EOF