From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Akihiro Suda <suda.kyoto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] sched_setattr.2: callee's affinity matters, not caller's one.
Date: Fri, 8 Jan 2016 21:27:49 +0100 [thread overview]
Message-ID: <56901BC5.4060708@gmail.com> (raw)
In-Reply-To: <CAG8fp8Sn2rRBxHPvpgU-k_XGDfEkZsKcopm8k9udajm_xGzARA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
Hello Akihiro,
On 01/02/2016 02:04 PM, Akihiro Suda wrote:
> Hi, all
>
> sched_setattr.2 says:
>
> EPERM The caller's CPU affinity mask does not include all CPUs in
> the system (see sched_setaffinity(2)).
>
>
> But it seems that callee's affinity matters, not caller's one.
> http://lxr.free-electrons.com/source/kernel/sched/core.c?v=4.3#L3888
I agree with you. But I think we can word a little more precisely,
since "callee" isn't so clear. I applied the patch below. Thanks!
Cheers,
Michael
-- a/man2/sched_setattr.2
+++ b/man2/sched_setattr.2
@@ -341,7 +341,8 @@ are invalid.
The caller does not have appropriate privileges.
.TP
.B EPERM
-The caller's CPU affinity mask
+The CPU affinity mask of the thread specified by
+.I pid
does not include all CPUs in the system
(see
.BR sched_setaffinity (2)).
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2016-01-08 20:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-02 13:04 [PATCH] sched_setattr.2: callee's affinity matters, not caller's one Akihiro Suda
[not found] ` <CAG8fp8Sn2rRBxHPvpgU-k_XGDfEkZsKcopm8k9udajm_xGzARA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-01-08 20:27 ` Michael Kerrisk (man-pages) [this message]
[not found] ` <56901BC5.4060708-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-01-10 10:18 ` Akihiro Suda
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=56901BC5.4060708@gmail.com \
--to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=suda.kyoto-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/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