[PATCH] getcpu(2): document return/error values

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

 



Signed-off-by: Mike Frysinger <vapier@xxxxxxxxxx>
---
 man2/getcpu.2 |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/man2/getcpu.2 b/man2/getcpu.2
index 03e724a..a9d0793 100644
--- a/man2/getcpu.2
+++ b/man2/getcpu.2
@@ -48,6 +48,15 @@ The caller must be prepared to handle the situation when
 and
 .I node
 are no longer the current CPU and node.
+.SH "RETURN VALUE"
+On success, 0 is returned.
+On error, \-1 is returned, and
+.I errno
+is set appropriately.
+.SH ERRORS
+.TP
+.B EFAULT
+Arguments point outside the calling process's address space.
 .SH VERSIONS
 .BR getcpu ()
 was added in kernel 2.6.19 for x86_64 and i386.
-- 
1.7.9.7

--
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