From: Nikolai Dokutovich <ndokutovich@gmail.com>
To: Christian Brauner <brauner@kernel.org>
Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
Randy Dunlap <rdunlap@infradead.org>,
Alexander Viro <viro@zeniv.linux.org.uk>, Jan Kara <jack@suse.cz>,
Nikolai Dokutovich <ndokutovich@gmail.com>
Subject: [PATCH] nsfs: fix the ns_id_req kernel-doc prose
Date: Sat, 28 Nov 2026 17:06:35 +0300 [thread overview]
Message-ID: <20261128140636.41-1-ndokutovich@gmail.com> (raw)
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
reply other threads:[~2026-11-28 14:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261128140636.41-1-ndokutovich@gmail.com \
--to=ndokutovich@gmail.com \
--cc=brauner@kernel.org \
--cc=jack@suse.cz \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rdunlap@infradead.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox