Hi folks,
I'm working with some guys at PGI/AMD to get some sched_setaffinity
support in some runtime systems. We're having great difficulty getting
sched_setaffinity working.
The code below was constructed via the code in linux/kernel/sched.c,
contrary to the prototypes and the like. Surely we must be doing
something rather stupid, because we keep getting -EFAULT.
The only thing I can guess is that the sizeof(cpumask) is different in
kernel than it is in user land.
Any help would be greatly appreciated...
Phil
#include