set_cpus_allowed
Section: Kernel Hacker's Manual (9)
Updated: set_cpus_allowed
Index
Return to Main Contents
NAME
set_cpus_allowed - change a given task's processor affinity
SYNOPSIS
void set_cpus_allowed
(struct task_struct *p,
unsigned long new_mask);
ARGUMENTS
- p
-
task to bind
- new_mask
-
bitmask of allowed processors
DESCRIPTION
Upon return, the task is running on a legal processor. Note the caller
MUST HAVE A VALID REFERENCE TO THE TASK
it must not exit prematurely.
This call can sleep; do not hold locks on call.
Index
- NAME
-
- SYNOPSIS
-
- ARGUMENTS
-
- DESCRIPTION
-
- MUST HAVE A VALID REFERENCE TO THE TASK
-
This document was created by
man2html,
using the manual pages.
Time: 03:56:29 GMT, June 12, 2005