summaryrefslogtreecommitdiffstats
path: root/man2/mbind.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/mbind.2')
-rw-r--r--man2/mbind.242
1 files changed, 21 insertions, 21 deletions
diff --git a/man2/mbind.2 b/man2/mbind.2
index b0e961f9c..0fbb7fe63 100644
--- a/man2/mbind.2
+++ b/man2/mbind.2
@@ -45,11 +45,11 @@ If the memory range specified by the
.IR addr " and " len
arguments includes an "anonymous" region of memory\[em]that is
a region of memory created using the
-.BR mmap (2)
+.MR mmap 2
system call with the
.BR MAP_ANONYMOUS \[em]or
a memory-mapped file, mapped using the
-.BR mmap (2)
+.MR mmap 2
system call with the
.B MAP_PRIVATE
flag, pages will be allocated only according to the specified
@@ -73,9 +73,9 @@ Again, this may not be the thread that called
.P
If the specified memory range includes a shared memory region
created using the
-.BR shmget (2)
+.MR shmget 2
system call and attached using the
-.BR shmat (2)
+.MR shmat 2
system call,
pages allocated for the anonymous or shared memory region will
be allocated according to the policy specified, regardless of which
@@ -196,7 +196,7 @@ When applied to a range of memory via
.BR mbind (),
this means to use the thread memory policy,
which may have been set with
-.BR set_mempolicy (2).
+.MR set_mempolicy 2 .
If the mode of the thread memory policy is also
.BR MPOL_DEFAULT ,
the system-wide default policy will be used.
@@ -280,7 +280,7 @@ it becomes allowed by the thread's current cpuset context.
By contrast,
.B MPOL_DEFAULT
reverts to the memory policy of the thread (which may be set via
-.BR set_mempolicy (2));
+.MR set_mempolicy 2 );
that policy may be something other than "local allocation".
.P
If
@@ -450,7 +450,7 @@ and
are available only on Linux 2.6.16 and later.
.SH NOTES
For information on library support, see
-.BR numa (7).
+.MR numa 7 .
.P
NUMA policy is not supported on a memory-mapped file range
that was mapped with the
@@ -462,11 +462,11 @@ The
mode can have different effects for
.BR mbind ()
and
-.BR set_mempolicy (2).
+.MR set_mempolicy 2 .
When
.B MPOL_DEFAULT
is specified for
-.BR set_mempolicy (2),
+.MR set_mempolicy 2 ,
the thread's memory policy reverts to the system default policy
or local allocation.
When
@@ -475,7 +475,7 @@ is specified for a range of memory using
.BR mbind (),
any pages subsequently allocated for that range will use
the thread's memory policy, as set by
-.BR set_mempolicy (2).
+.MR set_mempolicy 2 .
This effectively removes the explicit policy from the
specified range, "falling back" to a possibly nondefault
policy.
@@ -488,16 +488,16 @@ or
.B MPOL_PREFERRED
with an empty set of nodes.
This method will work for
-.BR set_mempolicy (2),
+.MR set_mempolicy 2 ,
as well.
.SH SEE ALSO
-.BR get_mempolicy (2),
-.BR getcpu (2),
-.BR mmap (2),
-.BR set_mempolicy (2),
-.BR shmat (2),
-.BR shmget (2),
-.BR numa (3),
-.BR cpuset (7),
-.BR numa (7),
-.BR numactl (8)
+.MR get_mempolicy 2 ,
+.MR getcpu 2 ,
+.MR mmap 2 ,
+.MR set_mempolicy 2 ,
+.MR shmat 2 ,
+.MR shmget 2 ,
+.MR numa 3 ,
+.MR cpuset 7 ,
+.MR numa 7 ,
+.MR numactl 8