mirror of https://github.com/mkerrisk/man-pages
Memory policy is preserved across execve().
This commit is contained in:
parent
a5053dcb15
commit
3bd6a9b118
|
@ -22,7 +22,6 @@
|
||||||
.TH SET_MEMPOLICY 2 "2006-02-07" "SuSE Labs" "Linux Programmer's Manual"
|
.TH SET_MEMPOLICY 2 "2006-02-07" "SuSE Labs" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
set_mempolicy \- Set default NUMA memory policy for a process and its children.
|
set_mempolicy \- Set default NUMA memory policy for a process and its children.
|
||||||
|
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.B "#include <numaif.h>"
|
.B "#include <numaif.h>"
|
||||||
.sp
|
.sp
|
||||||
|
@ -96,7 +95,9 @@ If no node is set in the mask, then the memory is allocated on
|
||||||
the node of the CPU that triggered the allocation allocation (like
|
the node of the CPU that triggered the allocation allocation (like
|
||||||
.BR MPOL_DEFAULT ).
|
.BR MPOL_DEFAULT ).
|
||||||
|
|
||||||
The memory policy is inherited by child processes created using
|
The memory policy is preserved across an
|
||||||
|
.BR execve (2),
|
||||||
|
and is inherited by child processes created using
|
||||||
.BR fork (2)
|
.BR fork (2)
|
||||||
or
|
or
|
||||||
.BR clone (2).
|
.BR clone (2).
|
||||||
|
@ -109,7 +110,6 @@ returns 0;
|
||||||
on error, \-1 is returned and
|
on error, \-1 is returned and
|
||||||
.I errno
|
.I errno
|
||||||
is set to indicate the error.
|
is set to indicate the error.
|
||||||
|
|
||||||
.\" .SH ERRORS
|
.\" .SH ERRORS
|
||||||
.\" FIXME writeme -- no errors are listed on this page
|
.\" FIXME writeme -- no errors are listed on this page
|
||||||
.\" .
|
.\" .
|
||||||
|
|
Loading…
Reference in New Issue