[PATCH 07/10] Fix prototype for mbind(2)

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

 



The nmask argument is const. The return type in numaif.h is long.

---
Well, at least <numaif.h> says nmask is const. The current kernel does
not define it as a const argument, but sys_mbind() only passes it to
get_nodes(), which does treat it as const.

Signed-off-by: Rasmus Villemoes <rv@xxxxxxxxxxxxxxxxxx>
---
 man2/mbind.2 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/man2/mbind.2 b/man2/mbind.2
index 2a690e6..6cff10a 100644
--- a/man2/mbind.2
+++ b/man2/mbind.2
@@ -49,9 +49,9 @@ mbind \- set memory policy for a memory range
 .nf
 .B "#include <numaif.h>"
 .sp
-.BI "int mbind(void *" addr ", unsigned long " len  ", int " mode ,
-.BI "          unsigned long *" nodemask  ", unsigned long " maxnode ,
-.BI "          unsigned " flags );
+.BI "long mbind(void *" addr ", unsigned long " len  ", int " mode ,
+.BI "           const unsigned long *" nodemask  ", unsigned long " maxnode ,
+.BI "           unsigned " flags );
 .sp
 Link with \fI\-lnuma\fP.
 .fi
-- 
1.9.2

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