[PATCH v1 02/10] man/man2/statmount.2: Document STATMOUNT_MNT_OPTS
Bhavik Sachdev <[email protected]> Tue, 10 Feb 2026 02:47:35 +0530
| Newsgroups | dev.linux.lists.criu,org.kernel.vger.linux-man |
|---|---|
| Message-ID | <ece6d92155a289a30e316ff0c52bb279ec9f1186.1770671863.git.b.sachdev1904@gmail.com> |
Document STATMOUNT_MNT_OPTS flag and the corresponding field introduced by it. STATMOUNT_MNT_OPTS is used to get all mount options on the mount separated by commas. Similiar to how they are displayed in /proc/[pid]/mountinfo. This text is based on this commit [1]. Link [1]: <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f9af549d1fd31487bbbc666b5b158cfc940ccc17> Signed-off-by: Bhavik Sachdev <[email protected]> --- man/man2/statmount.2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/man/man2/statmount.2 b/man/man2/statmount.2 index f5c4da122..fee37069a 100644 --- a/man/man2/statmount.2 +++ b/man/man2/statmount.2 @@ -31,6 +31,7 @@ .SH SYNOPSIS .P .B struct statmount { .B " __u32 size;" +.B " __u32 mnt_opts;" .B " __u64 mask;" .B " __u32 sb_dev_major;" .B " __u32 sb_dev_minor;" @@ -108,6 +109,7 @@ .SS The mnt_id_req structure STATMOUNT_MNT_POINT /* Want/got mnt_point */ STATMOUNT_FS_TYPE /* Want/got fs_type */ STATMOUNT_MNT_NS_ID /* Want/got mnt_ns_id */ +STATMOUNT_MNT_OPTS /* Want/got mnt_opts */ .TE .in .P @@ -159,6 +161,13 @@ .SS The returned information structure, including any of the strings fields that were filled. .TP +.I smbuf.mnt_opts +The offset to the location in the +.I smbuf.str +buffer that contains a comma separated list of mount options, +similiar to those in /proc/[pid]/mountinfo. +It is a null-terminated string. +.TP .I smbuf.mask The ORed combination of .BI STATMOUNT_ * -- 2.53.0