summaryrefslogtreecommitdiff
path: root/include/linux/refcount.h
diff options
context:
space:
mode:
authorElena Reshetova <elena.reshetova@intel.com>2017-12-05 12:46:35 +0200
committerJonathan Corbet <corbet@lwn.net>2017-12-11 14:37:11 -0700
commitb6e859f6cdd1686c021dcb3e18591d0b28ce8867 (patch)
tree4c2d00ec6d68a39f6fcf39242acf9515e66754f6 /include/linux/refcount.h
parent3ece7805105ef5967fd88547ac958c6d59329e9c (diff)
docs: refcount_t documentation
Some functions from refcount_t API provide different memory ordering guarantees that their atomic counterparts. This adds a document outlining these differences ( Documentation/core-api/refcount-vs-atomic.rst) as well as some other minor improvements. Signed-off-by: Elena Reshetova <elena.reshetova@intel.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'include/linux/refcount.h')
-rw-r--r--include/linux/refcount.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/refcount.h b/include/linux/refcount.h
index e8286585e149..4193c41e383a 100644
--- a/include/linux/refcount.h
+++ b/include/linux/refcount.h
@@ -8,7 +8,7 @@
#include <linux/kernel.h>
/**
- * refcount_t - variant of atomic_t specialized for reference counts
+ * struct refcount_t - variant of atomic_t specialized for reference counts
* @refs: atomic_t counter field
*
* The counter saturates at UINT_MAX and will not move once