diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2008-08-07 12:19:08 +0000 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2008-08-07 12:19:08 +0000 |
| commit | cdba92536de002a1d3e01d58899dfb66e0eacea4 (patch) | |
| tree | f3d752c29f80fd44a12b3e921d6eb396a719f1d5 | |
| parent | 5dcc3b660135ea8031d047a47ca3dc527d24c39b (diff) | |
| download | man-pages-cdba92536de002a1d3e01d58899dfb66e0eacea4.tar.gz | |
Lee Schermerhorn
Fix up the error return for nodemask containing nodes disallowed by
the process' current cpuset. Disallowed nodes are now silently ignored,
as long as the nodemask contains at least one node that is on-line,
allowed by the process' cpuset and has memory.
Now that we have a cpuset man page, we can refer to cpusets directly
in the man page text.
| -rw-r--r-- | man2/set_mempolicy.2 | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/man2/set_mempolicy.2 b/man2/set_mempolicy.2 index 42fd4e6584..2215d401b6 100644 --- a/man2/set_mempolicy.2 +++ b/man2/set_mempolicy.2 @@ -22,7 +22,7 @@ .\" 2007-08-27, Lee Schermerhorn <Lee.Schermerhorn@hp.com> .\" more precise specification of behavior. .\" -.TH SET_MEMPOLICY 2 2007-08-27 Linux "Linux Programmer's Manual" +.TH SET_MEMPOLICY 2 2008-08-07 Linux "Linux Programmer's Manual" .SH NAME set_mempolicy \- set default NUMA memory policy for a process and its children .SH SYNOPSIS @@ -60,7 +60,7 @@ memory mapped files mapped using the .BR mmap (2) call with the .B MAP_PRIVATE -flag and that are only read [loaded] from by the task +flag and that are only read [loaded] from by the process and of memory mapped files mapped using the .BR mmap (2) call with the @@ -104,6 +104,11 @@ is zero, the .I nodemask argument is ignored. +Where a +.I nodemask +is required, it must contain at least one node that is on-line, +allowed by the process's current cpuset context, +and contains memory. The .B MPOL_DEFAULT @@ -209,13 +214,11 @@ specifies more than a page worth of bits. Or, .I nodemask specifies one or more node IDs that are -greater than the maximum supported node ID, -or are not allowed in the calling task's context. -.\" "calling task's context" refers to cpusets. -.\" No man page avail to ref. --Lee Schermerhorn +greater than the maximum supported node ID. Or, none of the node IDs specified by .I nodemask -are on-line, or none of the specified nodes contain memory. +are on-line and allowed by the process's current cpuset context, +or none of the specified nodes contain memory. .TP .B ENOMEM Insufficient kernel memory was available. |
