Re: [PATCH] sched_setattr.2: callee's affinity matters, not caller's one.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Michael,

OK, and thanks!


2016-01-09 5:27 GMT+09:00 Michael Kerrisk (man-pages) <mtk.manpages@xxxxxxxxx>:
> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux