From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael Kerrisk (man-pages)" Subject: Re: [PATCH] sched_setattr.2: callee's affinity matters, not caller's one. Date: Fri, 8 Jan 2016 21:27:49 +0100 Message-ID: <56901BC5.4060708@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-man-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Akihiro Suda Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-man@vger.kernel.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