[PATCH v2 2/4] man/man2/statmount.2: Document STATMOUNT_SUPPORTED_MASK
Bhavik Sachdev <[email protected]> Mon, 23 Feb 2026 19:40:24 +0530
| Newsgroups | dev.linux.lists.criu,org.kernel.vger.linux-man |
|---|---|
| Message-ID | <2bf71bae60b181c206326417047ece49f1113940.1771855680.git.b.sachdev1904@gmail.com> |
Document STATMOUNT_SUPPORTED_MASK flag and the corresponding field introduced by it. It is used to determine the flags supported by the current kernel. The text is based on this commit message [1]. Link [1]: <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f6116b5b77b0536d2ad7482ee42bfe58b8fac01> Signed-off-by: Bhavik Sachdev <[email protected]> Message-ID: <b537e03ab73d8677a53730311b5a3c11ff29a51b.1771855135.git.b.sachdev1904@gmail.com> --- man/man2/statmount.2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/man/man2/statmount.2 b/man/man2/statmount.2 index f5a3721eb..843293e43 100644 --- a/man/man2/statmount.2 +++ b/man/man2/statmount.2 @@ -60,6 +60,7 @@ .SH SYNOPSIS .B " __u32 mnt_uidmap;" .B " __u32 mnt_gidmap_num;" .B " __u32 mnt_gidmap;" +.B " __u64 supported_mask;" .B " char str[];" .B }; .EE @@ -126,6 +127,7 @@ .SS The mnt_id_req structure STATMOUNT_OPT_SEC_ARRAY /* Want/got opt_sec_{num,array} */ STATMOUNT_MNT_UIDMAP /* Want/got uidmap... */ STATMOUNT_MNT_GIDMAP /* Want/got gidmap... */ +STATMOUNT_SUPPORTED_MASK /* Want/got supported mask flags */ .TE .in .P @@ -340,6 +342,11 @@ .SS The returned information .IR smbuf.mnt_gidmap_num . The whole range of gid mappings must be resolvable in the user namespace of the caller. +.TP +.IR smbuf.supported_mask " (since Linux 6.15)" +The ORed combination of +.BI STATMOUNT_ * +flags supported by the current kernel. .SH RETURN VALUE On success, zero is returned. On error, \-1 is returned, and -- 2.53.0