* [PATCH] cgroup: fix the css parameter names in the descendant iterator docs
@ 2026-11-29 1:41 Nikolai Dokutovich
2026-11-29 7:37 ` Tejun Heo
0 siblings, 1 reply; 2+ messages in thread
From: Nikolai Dokutovich @ 2026-11-29 1:41 UTC (permalink / raw)
To: Tejun Heo, Johannes Weiner
Cc: Michal Koutný, cgroups, linux-kernel, Nikolai Dokutovich
css_for_each_descendant_pre() and css_for_each_descendant_post() take
the css to walk as their second parameter, named css, but their
kernel-doc tags and prose call it root. Rename it to css throughout;
kernel-doc flags the tags as excess parameters otherwise.
Signed-off-by: Nikolai Dokutovich <ndokutovich@gmail.com>
---
include/linux/cgroup.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index 2afb4cb2bb4f..f3c65991acac 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -235,9 +235,9 @@ void css_task_iter_end(struct css_task_iter *it);
/**
* css_for_each_descendant_pre - pre-order walk of a css's descendants
* @pos: the css * to use as the loop cursor
- * @root: css whose descendants to walk
+ * @css: css whose descendants to walk
*
- * Walk @root's descendants. @root is included in the iteration and the
+ * Walk @css's descendants. @css is included in the iteration and the
* first node to be visited. Must be called under rcu_read_lock().
*
* If a subsystem synchronizes ->css_online() and the start of iteration, a
@@ -298,7 +298,7 @@ void css_task_iter_end(struct css_task_iter *it);
* @css: css whose descendants to walk
*
* Similar to css_for_each_descendant_pre() but performs post-order
- * traversal instead. @root is included in the iteration and the last
+ * traversal instead. @css is included in the iteration and the last
* node to be visited.
*
* If a subsystem synchronizes ->css_online() and the start of iteration, a
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-29 7:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29 1:41 [PATCH] cgroup: fix the css parameter names in the descendant iterator docs Nikolai Dokutovich
2026-11-29 7:37 ` Tejun Heo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®