X-Git-Url: http://git.osdn.net/view?p=linuxjm%2FLDP_man-pages.git;a=blobdiff_plain;f=original%2Fman2%2Fmbind.2;h=d0dc863af656bb25c88ea1bdd7e1636812917ecc;hp=a4d3aa515954d8d8e71c50179072c90234031564;hb=4ea6bb24817f6f049d6bbc90ecd77a869876f9b0;hpb=e9e6c106d11bd9cca5f4a6585364b93f5ae3007a diff --git a/original/man2/mbind.2 b/original/man2/mbind.2 index a4d3aa51..d0dc863a 100644 --- a/original/man2/mbind.2 +++ b/original/man2/mbind.2 @@ -42,16 +42,16 @@ .\" Author: Lee Schermerhorn .\" 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 " .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,11 +73,11 @@ 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 -flag, pages will only be allocated according to the specified +flag, pages will be allocated only according to the specified policy when the application writes [stores] to the page. For anonymous regions, an initial read access will use a shared page in the kernel containing all zeros. @@ -115,7 +115,7 @@ for that region. By default, .BR mbind () -only has an effect for new allocations; if the pages inside +has an effect only for new allocations; if the pages inside the range have been already touched before setting the policy, then the policy has no effect. This default behavior may be overridden by the @@ -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 @@ -169,7 +169,7 @@ points to a bit mask of nodes containing up to bits. The bit mask size is rounded to the next multiple of .IR "sizeof(unsigned long)" , -but the kernel will only use bits up to +but the kernel will use bits only up to .IR maxnode . A NULL value of .I nodemask @@ -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. @@ -453,7 +456,7 @@ is ignored on huge page mappings. .B MPOL_MF_MOVE and .B MPOL_MF_MOVE_ALL -are only available on Linux 2.6.16 and later. +are available only on Linux 2.6.16 and later. .SH SEE ALSO .BR get_mempolicy (2), .BR getcpu (2), @@ -465,3 +468,12 @@ are only available 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/.