Linux Manual Pages development
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx+linux-man@kernel.org>
To: "Enji Cooper (yaneurabeya)" <yaneurabeya@gmail.com>
Cc: linux-man@vger.kernel.org
Subject: Re: [PATCH] man/man2/sched_setattr.2: update `EINVAL` case with `.sched_flags`
Date: Fri, 23 Oct 2026 21:37:43 +0200	[thread overview]
Message-ID: <atu28R9-CdAtoz-V@debian> (raw)
In-Reply-To: <A89056FB-15B8-454D-9C6F-9EEB75965302@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1397 bytes --]

Hi Enji,

> Date: 2026-10-23 11:58:57-0700
> From: "Enji Cooper (yaneurabeya)" <yaneurabeya@gmail.com>
>
> In more recent versions of the kernel, `.sched_flags` is a treated as a
> bitmask that supports values like `SCHED_FLAG_UTIL_CLAMP_MIN`, etc.
> 
> Account for the additional flags so the documentation is up to date with
> the kernel implementation of `sched_setattr`.
> 
> Ref: linux.git 480a6ca2dc6e ("sched/uclamp: Allow to reset a task uclamp constraint value")
> 
> Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
> ---
>  man/man2/sched_setattr.2 | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/man/man2/sched_setattr.2 b/man/man2/sched_setattr.2
> index 80a0ac726dcf..64acdd88884f 100644
> --- a/man/man2/sched_setattr.2
> +++ b/man/man2/sched_setattr.2
> @@ -417,7 +417,10 @@ .SH ERRORS
>  .B EINVAL
>  .I attr.sched_flags
>  contains a flag other than
> -.BR SCHED_FLAG_RESET_ON_FORK .
> +.BR SCHED_FLAG_RESET_ON_FORK ,
> +.BR SCHED_FLAG_UTIL_CLAMP_MIN ,
> +or
> +.BR SCHED_FLAG_UTIL_CLAMP_MAX .

Why does this list not include flags such as SCHED_FLAG_RESET_ON_FORK?
It is documented in the same manual page, so I expect it's valid here,
right?


Have a lovely night!
Alex

>  .TP
>  .B EINVAL
>  .I attr.sched_priority
> --  2.50.1 (Apple Git-155)
> 





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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2026-10-23 19:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23 18:58 [PATCH] man/man2/sched_setattr.2: update `EINVAL` case with `.sched_flags` Enji Cooper (yaneurabeya)
2026-10-23 19:37 ` Alejandro Colomar [this message]
2026-10-23 23:56   ` Enji Cooper (yaneurabeya)
2026-10-24  8:41     ` Alejandro Colomar

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=atu28R9-CdAtoz-V@debian \
    --to=alx+linux-man@kernel.org \
    --cc=linux-man@vger.kernel.org \
    --cc=yaneurabeya@gmail.com \
    /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