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