In 2.5, there is the system call sched_setaffinity. It is rather new so
your libraries do not support it - see example code and headers at:
ftp://ftp.kernel.org/pub/linux/kernel/people/rml/cpu-affinity
For 2.4, there is not yet such an interface. At the above URL, you can
find a proc-based and a syscall-based interface for setting and
retrieving affinity.
Robert Love
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/