[PATCH] man/man2/statmount.2: document flags argument

Alyssa Ross posted 1 patch 1 month, 3 weeks ago
man/man2/statmount.2 | 2 ++
1 file changed, 2 insertions(+)
[PATCH] man/man2/statmount.2: document flags argument
Posted by Alyssa Ross 1 month, 3 weeks ago
Reading the man page for the first time, I assumed the lack of
mentioned flags meant that there weren't any, but I had to check the
kernel source to be sure.  Sure enough:

	if (flags)
		return -EINVAL;

Signed-off-by: Alyssa Ross <hi@alyssa.is>
---
 man/man2/statmount.2 | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/man/man2/statmount.2 b/man/man2/statmount.2
index 8a83d5e34..cdc96da92 100644
--- a/man/man2/statmount.2
+++ b/man/man2/statmount.2
@@ -68,6 +68,8 @@ The returned buffer is a
 which is of size
 .I bufsize
 with the fields filled in as described below.
+.I flags
+must be 0.
 .P
 (Note that reserved space and padding is omitted.)
 .SS The mnt_id_req structure

base-commit: a5342ef55f0a96790bf279a98c9d2a30b19fc9eb
-- 
2.51.0
Re: [PATCH] man/man2/statmount.2: document flags argument
Posted by Alejandro Colomar 1 month, 3 weeks ago
Hi Alyssa,

On Fri, Dec 19, 2025 at 12:05:17AM +0100, Alyssa Ross wrote:
> Reading the man page for the first time, I assumed the lack of
> mentioned flags meant that there weren't any, but I had to check the
> kernel source to be sure.  Sure enough:
> 
> 	if (flags)
> 		return -EINVAL;
> 
> Signed-off-by: Alyssa Ross <hi@alyssa.is>

Thanks!  Patch applied.


Have a lovely night!
Alex

> ---
>  man/man2/statmount.2 | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/man/man2/statmount.2 b/man/man2/statmount.2
> index 8a83d5e34..cdc96da92 100644
> --- a/man/man2/statmount.2
> +++ b/man/man2/statmount.2
> @@ -68,6 +68,8 @@ The returned buffer is a
>  which is of size
>  .I bufsize
>  with the fields filled in as described below.
> +.I flags
> +must be 0.
>  .P
>  (Note that reserved space and padding is omitted.)
>  .SS The mnt_id_req structure
> 
> base-commit: a5342ef55f0a96790bf279a98c9d2a30b19fc9eb
> -- 
> 2.51.0
> 
> 

-- 
<https://www.alejandro-colomar.es>