.\" Author: Lee Schermerhorn <lee.schermerhorn@hp.com>
.\" Date: Thu Oct 25 14:16:32 2012 +0200
.\"
-.TH MBIND 2 2017-09-15 Linux "Linux Programmer's Manual"
+.TH MBIND 2 2021-03-22 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
.SH NAME
mbind \- set memory policy for a memory range
+.SH LIBRARY
+NUMA (Non-Uniform Memory Access) policy library
+.RI ( libnuma ", " \-lnuma )
.SH SYNOPSIS
.nf
.B "#include <numaif.h>"
.PP
.BI "long mbind(void *" addr ", unsigned long " len ", int " mode ,
.BI " const unsigned long *" nodemask ", unsigned long " maxnode ,
-.BI " unsigned " flags );
-.PP
-Link with \fI\-lnuma\fP.
+.BI " unsigned int " flags );
.fi
.SH DESCRIPTION
.BR mbind ()
.BR MPOL_INTERLEAVE ,
.BR MPOL_PREFERRED ,
or
-.BR MPOL_LOCAL
+.B MPOL_LOCAL
(which are described in detail below).
All policy modes except
.B MPOL_DEFAULT
.I maxnode
points outside your accessible address space.
Or, there was an unmapped hole in the specified memory range specified by
-.IR addr
+.I addr
and
.IR len .
.TP
The
.BR mbind ()
system call was added to the Linux kernel in version 2.6.7.
-.SH CONFORMING TO
+.SH STANDARDS
This system call is Linux-specific.
.SH NOTES
For information on library support, see
For interleave policy to be effective on huge page mappings the
policied memory needs to be tens of megabytes or larger.
.PP
+Before Linux 5.7.
+.\" commit dcf1763546d76c372f3136c8d6b2b6e77f140cf0
.B MPOL_MF_STRICT
-is ignored on huge page mappings.
+was ignored on huge page mappings.
.PP
.B MPOL_MF_MOVE
and