]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
sched_setaffinity.2: Correct details of return value of sched_getaffinity() syscall
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 5 May 2019 18:02:30 +0000 (13:02 -0500)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 5 May 2019 18:02:30 +0000 (13:02 -0500)
Things changed a little with:

    commit cd3d8031eb4311e516329aee03c79a08333141f1
    Author: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
    Date:   Fri Mar 12 16:15:36 2010 +0900

Reported-by: Brice Goglin <Brice.Goglin@inria.fr>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/sched_setaffinity.2

index 74bbde81c6166cbc99daafb3a973c65e6b40053e..d6663450f4c6abff98fd8b750907c8fb56e75fa2 100644 (file)
@@ -238,9 +238,15 @@ being typed as
 .IR "unsigned long\ *" ,
 reflecting the fact that the underlying implementation of CPU
 sets is a simple bit mask.
+.PP
 On success, the raw
 .BR sched_getaffinity ()
-system call returns the size (in bytes) of the
+system call returns the number of bytes placed copied into the
+.I mask
+buffer;
+this will be the minimum of
+.I cpusetsize
+and the size (in bytes) of the
 .I cpumask_t
 data type that is used internally by the kernel to
 represent the CPU set bit mask.