Hi Bhavik, On 2026-02-10T02:47:35+0530, Bhavik Sachdev wrote: > 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]: > > > Signed-off-by: Bhavik Sachdev > --- > 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. The path should be marked up: .IR /proc/ pid /mountinfo . Though you may want to refer to proc_pid_mountinfo(5). Cheers, Alex > +It is a null-terminated string. > +.TP > .I smbuf.mask > The ORed combination of > .BI STATMOUNT_ * > -- > 2.53.0 > --