mirror of https://github.com/mkerrisk/man-pages
mbind.2: Fix prototype for mbind(2)
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@rasmusvillemoes.dk> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
24313b880d
commit
b93d8ccadc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue