All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nsfs: fix the ns_id_req kernel-doc prose
@ 2026-11-28 14:06 Nikolai Dokutovich
  2026-11-30 13:08 ` Jan Kara
  0 siblings, 1 reply; 2+ messages in thread
From: Nikolai Dokutovich @ 2026-11-28 14:06 UTC (permalink / raw)
  To: Christian Brauner
  Cc: linux-fsdevel, linux-kernel, Randy Dunlap, Alexander Viro,
	Jan Kara, Nikolai Dokutovich

The paragraphs describing struct ns_id_req were copied from struct
mnt_id_req: they mention statns(2), which does not exist, and a @param
member that struct ns_id_req does not have, and they describe the
listns(2) cursor as a mount ID although listns() lists namespace IDs.

The member descriptions were fixed earlier; describe the cursor that
actually exists.

Fixes: 76b6f5dfb3fd ("nstree: add listns()")
Signed-off-by: Nikolai Dokutovich <ndokutovich@gmail.com>
---
 include/uapi/linux/nsfs.h | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/include/uapi/linux/nsfs.h b/include/uapi/linux/nsfs.h
index e5909266ec3f..0e7013d20d1f 100644
--- a/include/uapi/linux/nsfs.h
+++ b/include/uapi/linux/nsfs.h
@@ -97,16 +97,13 @@ enum ns_type {
  * struct ns_id_req - namespace ID request structure
  * @size: size of this structure
  * @spare: reserved for future use
- * @ns_id: last namespace ID
- * @ns_type: bit mask of namespace types to include
+ * @ns_id: last listed namespace ID (or 0 to start at the beginning)
+ * @ns_type: bit mask of enum ns_type values to include (or 0 for all)
  * @spare2: reserved for future use
- * @user_ns_id: filter on this user namespace ID (or 0)
+ * @user_ns_id: owning user namespace ID to filter on (or 0 for all, or
+ *              LISTNS_CURRENT_USER for the caller's user namespace)
  *
- * Structure for passing namespace ID and miscellaneous parameters to
- * statns(2) and listns(2).
- *
- * For statns(2) @param represents the request mask.
- * For listns(2) @param represents the last listed mount id (or zero).
+ * Structure for passing parameters to listns(2).
  */
 struct ns_id_req {
 	__u32 size;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-11-30 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28 14:06 [PATCH] nsfs: fix the ns_id_req kernel-doc prose Nikolai Dokutovich
2026-11-30 13:08 ` Jan Kara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.