[PATCH] nsfs: fix the ns_id_req kernel-doc prose

From: Nikolai Dokutovich

Date: Sat Nov 28 2026 - 09:06:48 EST


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@xxxxxxxxx>
---
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