[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1466975603-25408-1-git-send-email-zev@bewilderbeest.net>
Date: Sun, 26 Jun 2016 16:13:23 -0500
From: Zev Weiss <zev@...ilderbeest.net>
To: Ingo Molnar <mingo@...hat.com>,
Peter Zijlstra <peterz@...radead.org>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] sched/core: fix sched_getaffinity return value kerneldoc
Previous version was probably written referencing the man page for
glibc's wrapper, but the wrapper's behavior differs from that of the
syscall itself in this case.
Signed-off-by: Zev Weiss <zev@...ilderbeest.net>
---
kernel/sched/core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 51d7105..c272491 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4752,7 +4752,8 @@ out_unlock:
* @len: length in bytes of the bitmask pointed to by user_mask_ptr
* @user_mask_ptr: user-space pointer to hold the current cpu mask
*
- * Return: 0 on success. An error code otherwise.
+ * Return: size of cpu mask copied to user_mask_ptr on success. An
+ * error code otherwise.
*/
SYSCALL_DEFINE3(sched_getaffinity, pid_t, pid, unsigned int, len,
unsigned long __user *, user_mask_ptr)
--
2.8.1
Powered by blists - more mailing lists