lkml.org 
[lkml]   [2004]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.024 / U:1.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site