mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] sched/core: fix sched_getaffinity return value kerneldoc
@ 2016-06-26 21:13 Zev Weiss
  2016-06-27 12:59 ` [tip:sched/core] sched/core: Fix sched_getaffinity() return value kerneldoc comment tip-bot for Zev Weiss
  0 siblings, 1 reply; 2+ messages in thread
From: Zev Weiss @ 2016-06-26 21:13 UTC (permalink / raw)
  To: Ingo Molnar, Peter Zijlstra; +Cc: linux-kernel

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@bewilderbeest.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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-27 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-26 21:13 [PATCH] sched/core: fix sched_getaffinity return value kerneldoc Zev Weiss
2016-06-27 12:59 ` [tip:sched/core] sched/core: Fix sched_getaffinity() return value kerneldoc comment tip-bot for Zev Weiss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome