mirror of https://github.com/mkerrisk/man-pages
CPU_SET.3: Clarify language about "available" cpus
The CPU_SET.3 man page uses the adjective "available" when explaining what the argument to CPU_SET() means. This is confusing, since "available" isn't well-defined. The kernel has a set of adjectives (possible, present, online, and active) that qualify cpus, but normally none of these are what the cpu_set_t bit index means: it's just "which cpu", using the kernel's internal numbering system, even if that cpu isn't possible or present. This change removes the word "available" and adds a sentence warning that cpu sets may not be contiguous due to dynamic cpu hotplug, etc. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
93c2e06972
commit
a6eb40552a
|
@ -126,11 +126,14 @@ Where a
|
|||
argument is specified, it should not produce side effects,
|
||||
since the above macros may evaluate the argument more than once.
|
||||
.PP
|
||||
The first available CPU on the system corresponds to a
|
||||
The first CPU on the system corresponds to a
|
||||
.I cpu
|
||||
value of 0, the next CPU corresponds to a
|
||||
.I cpu
|
||||
value of 1, and so on.
|
||||
No assumptions should be made about particular CPUs being
|
||||
available, or the set of CPUs being contiguous, since CPUs can
|
||||
be taken offline dynamically or be otherwise absent.
|
||||
The constant
|
||||
.B CPU_SETSIZE
|
||||
(currently 1024) specifies a value one greater than the maximum CPU
|
||||
|
|
Loading…
Reference in New Issue