On Wed, 2002-02-27 at 18:45, Robert Love wrote: > The attached patch implements a syscall interface for setting and > retrieving a task's CPU affinity (task->cpus_allowed): I should posted a test program to demonstrate the syscalls - find such an attachment below. It demonstrates using sched_get_affinity to find the length of the cpu bitmask and then get and set a new value. `pid_t p' is the process in question. `unsigned long new_mask' is the new bitmask. Robert Love