Add text to note that sched_setaffinity() will migrate the

affected process to one of the specified CPUs if necessary.
This commit is contained in:
Michael Kerrisk 2005-05-03 11:24:33 +00:00
parent 75ced2e8a3
commit 6fbc0235a6
1 changed files with 8 additions and 1 deletions

View File

@ -26,7 +26,7 @@
.\" 2004-04-20 mtk - fixed description of return value
.\" 2004-04-22 aeb - added glibc prototype history
.\"
.TH SCHED_SETAFFINITY 2 2004-04-22 "Linux" "Linux Programmer's Manual"
.TH SCHED_SETAFFINITY 2 2005-05-03 "Linux" "Linux Programmer's Manual"
.SH NAME
sched_setaffinity, sched_getaffinity \- set and get a process's CPU affinity
mask
@ -55,6 +55,13 @@ CPU while an unset bit corresponds to an illegally schedulable CPU. In other
words, a process is bound to and will only run on processors whose
corresponding bit is set. Usually, all bits in the mask are set.
.sp
If the process specified by
.I pid
is not curently running on one of the CPUs specified in
.IR mask ,
then that process is migrated to one of the CPUs specified in
.IR mask .
.sp
The argument
.I len
is the length (in bytes) of the data pointed to by