From: Florian Weimer <fw@deneb.enyo.de>
To: Szabolcs Nagy <szabolcs.nagy@arm.com>
Cc: Juri Lelli <juri.lelli@redhat.com>,
nd@arm.com, libc-alpha@sourceware.org
Subject: Re: Is adding a pthread wrapper for sched_{get,set}attr feasible?
Date: Wed, 22 Aug 2018 23:00:04 +0200 [thread overview]
Message-ID: <87va826rsb.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: <1abf6029-9406-ae3d-f9e8-7cd9c687a928@arm.com> (Szabolcs Nagy's message of "Wed, 22 Aug 2018 15:37:22 +0100")
* Szabolcs Nagy:
> the main ugliness about reusing sched_param is that it's
> an abi break, the main ugliness about sched_attr is that
> it is linux specific so you need linux specific api to
> work with it. (pthread_* is posix namespace, not for linux).
We can add pthread_*_np functions, there is precedent for that.
What's unclear to me is what the expected evolution of struct
sched_attr is. Is the description in the manual page accurate?
If we had a pthread_attr_setschedattr_np function, it presumably would
have to make a copy of the argument on the heap, to be consistent with
other such functions. In order to make this future-proof, we would
need a precise description of the extension mechanism, and a promise
that later versions will not contain pointers (which would be unlikely
for such kernel data structures, but it would not be entirely
impossible to have them).
next prev parent reply other threads:[~2018-08-22 21:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-22 13:15 Is adding a pthread wrapper for sched_{get,set}attr feasible? Juri Lelli
2018-08-22 14:03 ` Szabolcs Nagy
2018-08-22 14:32 ` Juri Lelli
2018-08-22 14:37 ` Szabolcs Nagy
2018-08-22 21:00 ` Florian Weimer [this message]
2018-08-23 7:31 ` Juri Lelli
2018-08-23 19:50 ` Joseph Myers
2018-08-24 6:45 ` Juri Lelli
2018-08-24 12:09 ` Patrick Bellasi
2018-08-24 14:43 ` Joseph Myers
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
List information: https://www.gnu.org/software/libc/involved.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87va826rsb.fsf@mid.deneb.enyo.de \
--to=fw@deneb.enyo.de \
--cc=juri.lelli@redhat.com \
--cc=libc-alpha@sourceware.org \
--cc=nd@arm.com \
--cc=szabolcs.nagy@arm.com \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).