OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man2 / mbind.2
index ded226f..d0dc863 100644 (file)
 .\"                Author: Lee Schermerhorn <lee.schermerhorn@hp.com>
 .\"                Date:   Thu Oct 25 14:16:32 2012 +0200
 .\"
-.TH MBIND 2 2008-08-15 Linux "Linux Programmer's Manual"
+.TH MBIND 2 2015-01-22 Linux "Linux Programmer's Manual"
 .SH NAME
 mbind \- set memory policy for a memory range
 .SH SYNOPSIS
 .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
@@ -73,7 +73,7 @@ a region of memory created using the
 .BR mmap (2)
 system call with the
 .BR MAP_ANONYMOUS \(emor
-a memory mapped file, mapped using the
+a memory-mapped file, mapped using the
 .BR mmap (2)
 system call with the
 .B MAP_PRIVATE
@@ -129,7 +129,7 @@ The
 argument must specify one of
 .BR MPOL_DEFAULT ,
 .BR MPOL_BIND ,
-.B MPOL_INTERLEAVE
+.BR MPOL_INTERLEAVE ,
 or
 .BR MPOL_PREFERRED .
 All policy modes except
@@ -323,7 +323,10 @@ Part or all of the memory range specified by
 and
 .I maxnode
 points outside your accessible address space.
-Or, there was an unmapped hole in the specified memory range.
+Or, there was an unmapped hole in the specified memory range specified by
+.IR addr
+and
+.IR len .
 .TP
 .B EINVAL
 An invalid value was specified for
@@ -406,7 +409,7 @@ This system call is Linux-specific.
 For information on library support, see
 .BR numa (7).
 
-NUMA policy is not supported on a memory mapped file range
+NUMA policy is not supported on a memory-mapped file range
 that was mapped with the
 .B MAP_SHARED
 flag.
@@ -465,3 +468,12 @@ are available only on Linux 2.6.16 and later.
 .BR cpuset (7),
 .BR numa (7),
 .BR numactl (8)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.