aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/rculist_nulls.h
diff options
context:
space:
mode:
authorMadhuparna Bhowmik <madhuparnabhowmik04@gmail.com>2019-12-05 11:46:49 +0530
committerPaul E. McKenney <paulmck@kernel.org>2020-01-10 14:00:57 -0800
commit7f5d51e26a471f771b8dae1b9ef417f5fd5e9c85 (patch)
treee2b43dc30b8cd85bf74b51155dc30f4841b253f2 /include/linux/rculist_nulls.h
parentrcu: Add a hlist_nulls_unhashed_lockless() function (diff)
downloadlinux-dev-7f5d51e26a471f771b8dae1b9ef417f5fd5e9c85.tar.xz
linux-dev-7f5d51e26a471f771b8dae1b9ef417f5fd5e9c85.zip
rculist_nulls: Add docbook comments
This patch adds docbook comment headers for hlist_nulls_first_rcu() and hlist_nulls_next_rcu() in rculist_nulls.h. Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik04@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'include/linux/rculist_nulls.h')
-rw-r--r--include/linux/rculist_nulls.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/rculist_nulls.h b/include/linux/rculist_nulls.h
index 517a06f36c7a..25952c4f83b0 100644
--- a/include/linux/rculist_nulls.h
+++ b/include/linux/rculist_nulls.h
@@ -38,9 +38,17 @@ static inline void hlist_nulls_del_init_rcu(struct hlist_nulls_node *n)
}
}
+/**
+ * hlist_nulls_first_rcu - returns the first element of the hash list.
+ * @head: the head of the list.
+ */
#define hlist_nulls_first_rcu(head) \
(*((struct hlist_nulls_node __rcu __force **)&(head)->first))
+/**
+ * hlist_nulls_next_rcu - returns the element of the list after @node.
+ * @node: element of the list.
+ */
#define hlist_nulls_next_rcu(node) \
(*((struct hlist_nulls_node __rcu __force **)&(node)->next))