Fix error conditions, now that the kernel silently ignores

nodes outside the task's cpuset, as long as one valid node remains.

Now that cpuset man page exists, we can refer to it.  Remove
stale comment regarding lack thereof.
This commit is contained in:
Michael Kerrisk 2008-08-08 15:22:56 +00:00
parent f6ecd76eb8
commit bfcecf8a76
1 changed files with 10 additions and 7 deletions

View File

@ -22,7 +22,7 @@
.\" 2007-08-27, Lee Schermerhorn <Lee.Schermerhorn@hp.com>
.\" more precise specification of behavior.
.\"
.TH MBIND 2 2008-05-22 Linux "Linux Programmer's Manual"
.TH MBIND 2 2008-08-07 Linux "Linux Programmer's Manual"
.SH NAME
mbind \- Set memory policy for a memory range
.SH SYNOPSIS
@ -139,6 +139,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
@ -303,19 +308,17 @@ and
is empty.
Or,
.I maxnode
exceeds kernel-imposed limit.
exceeds a kernel-imposed limit.
.\" As at 2.6.23, this limit is "a page worth of bits", e.g.,
.\" 8 * 4096 bits, assuming a 4kB page size.
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 EIO
.B MPOL_MF_STRICT