Re: sched_getaffinity & sched_setaffinity returning -1 (errstr = Bad address)

From: alan pearson
Date: Thu Apr 15 2004 - 10:12:46 EST


Simon,

Exactly the problem. Same linux distro, but with
upgraded glibc. I also hadn't upgraded the header
files for my new glibc (doh!), and now problem solved
!

Thanks for that, makes me a *very* happy man. *Very*
happy......

AlanP


--- Simon Derr <simon.derr@xxxxxxxx> wrote: >
>
> 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.
>





____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/