All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched_setattr.2: callee's affinity matters, not caller's one.
@ 2016-01-02 13:04 Akihiro Suda
       [not found] ` <CAG8fp8Sn2rRBxHPvpgU-k_XGDfEkZsKcopm8k9udajm_xGzARA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Akihiro Suda @ 2016-01-02 13:04 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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

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

[-- Attachment #2: 0001-sched_setattr.2-callee-s-affinity-matters-not-caller.patch --]
[-- Type: application/octet-stream, Size: 848 bytes --]

From f2bd53237444dc2c318526c6a9ba0abc447577dc Mon Sep 17 00:00:00 2001
From: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Date: Sat, 2 Jan 2016 21:51:28 +0900
Subject: [PATCH] sched_setattr.2: callee's affinity matters, not caller's one.

http://lxr.free-electrons.com/source/kernel/sched/core.c?v=4.3#L3888
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
---
 man2/sched_setattr.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man2/sched_setattr.2 b/man2/sched_setattr.2
index c411f01..ce6d337 100644
--- a/man2/sched_setattr.2
+++ b/man2/sched_setattr.2
@@ -341,7 +341,7 @@ are invalid.
 The caller does not have appropriate privileges.
 .TP
 .B EPERM
-The caller's CPU affinity mask
+The callee's CPU affinity mask
 does not include all CPUs in the system
 (see
 .BR sched_setaffinity (2)).
-- 
2.5.4 (Apple Git-61)


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] sched_setattr.2: callee's affinity matters, not caller's one.
       [not found] ` <CAG8fp8Sn2rRBxHPvpgU-k_XGDfEkZsKcopm8k9udajm_xGzARA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-01-08 20:27   ` Michael Kerrisk (man-pages)
       [not found]     ` <56901BC5.4060708-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Kerrisk (man-pages) @ 2016-01-08 20:27 UTC (permalink / raw)
  To: Akihiro Suda
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w, linux-man-u79uwXL29TY76Z2rM5mHXA

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] sched_setattr.2: callee's affinity matters, not caller's one.
       [not found]     ` <56901BC5.4060708-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2016-01-10 10:18       ` Akihiro Suda
  0 siblings, 0 replies; 3+ messages in thread
From: Akihiro Suda @ 2016-01-10 10:18 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Michael,

OK, and thanks!


2016-01-09 5:27 GMT+09:00 Michael Kerrisk (man-pages) <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-10 10:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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)
     [not found]     ` <56901BC5.4060708-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-01-10 10:18       ` Akihiro Suda

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.