set_cpus_allowed
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.