Messages in this thread | | | Date | Thu, 15 Apr 2004 14:03:58 +0200 (CEST) | From | Simon Derr <> | Subject | Re: sched_getaffinity & sched_setaffinity returning -1 (errstr = Bad address) |
| |
On Thu, 15 Apr 2004, alan pearson wrote:
> Hi > > I've been trying to use the sched_getaffinity & > sched_setaffinity on > kernel 2.6.4 and it is working on some systems and not > others ! > It works fine on my aged dual CPU pentium pro box, but > on the box I > really want it to work on, the calls return -1 !
My guess is that on your newer box you also have a newer Linux distribution with the new sched_setaffinity() prototype, e.g with only two parameters.
new libc sched.h: extern int sched_setaffinity (__pid_t __pid, __const cpu_set_t *__mask);
Simon.
- 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/
| |