From: "alan pearson" <alandpearson@yahoo.com>
To: Simon Derr <simon.derr@bull.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: sched_getaffinity & sched_setaffinity returning -1 (errstr = Bad address)
Date: Thu, 15 Apr 2004 16:09:59 +0100 (BST) [thread overview]
Message-ID: <20040415150959.44584.qmail@web11410.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0404151358160.7864@daphne.frec.bull.fr>
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@bull.net> 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
prev parent reply other threads:[~2004-04-15 15:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-15 10:54 alan pearson
2004-04-15 12:03 ` Simon Derr
2004-04-15 15:09 ` alan pearson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040415150959.44584.qmail@web11410.mail.yahoo.com \
--to=alandpearson@yahoo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=simon.derr@bull.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®