From: Roland McGrath <roland@redhat.com>
To: Christoph Lameter <clameter@sgi.com>
Cc: Linus Torvalds <torvalds@osdl.org>, Andrew Morton <akpm@osdl.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Ulrich Drepper <drepper@redhat.com>
Subject: Re: [PATCH] CPU time clock support in clock_* syscalls
Date: Tue, 5 Oct 2004 14:22:49 -0700 [thread overview]
Message-ID: <200410052122.i95LMntn007340@magilla.sf.frob.com> (raw)
In-Reply-To: Christoph Lameter's message of Tuesday, 5 October 2004 13:53:44 -0700 <Pine.LNX.4.58.0410051350360.28733@schroedinger.engr.sgi.com>
> Is there a standard for that? Or is it an opaque type that you have
> defined this way?
Of course there is no standard for the bits used in a clockid_t. This is
an implementation detail in POSIX terms. POSIX defines function interfaces
to return clockid_t values (clock_getcpuclockid, pthread_getcpuclockid).
I have chosen the kernel-user ABI for Linux clockid_t's here, but that is
only of concern to the kernel and glibc.
> Posix only defines a process and a thread clock. This is much more.
Like I said the first time, it's three kinds of clocks. One is what we
will in future use to define POSIX's CPUTIME clocks in our POSIX
implementation, and the other two are what we already use to define
ITIMER_REAL/ITIMER_VIRTUAL in our existing POSIX implementation.
> I wonder how glibc will realize access to special timer hardware. Will
> glibc be able load device drivers for timer chips?
glibc has zero interest in doing any of that. It will use the single new
"best information" kernel interface when that is available, and it's the
kernel's concern what the best information available from the hardware is.
Thanks,
Roland
next prev parent reply other threads:[~2004-10-05 21:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-05 5:15 Roland McGrath
2004-10-05 5:20 ` Andrew Morton
2004-10-05 5:27 ` Roland McGrath
2004-10-05 6:43 ` Nick Piggin
2004-10-05 18:28 ` Roland McGrath
2004-10-05 23:18 ` Nick Piggin
2004-10-06 0:33 ` Roland McGrath
2004-10-06 0:51 ` Nick Piggin
2004-10-05 15:39 ` Christoph Lameter
2004-10-05 18:38 ` Roland McGrath
2004-10-05 20:53 ` Christoph Lameter
2004-10-05 21:22 ` Roland McGrath [this message]
2004-10-05 21:28 ` Christoph Lameter
2004-10-06 0:35 ` Roland McGrath
2004-10-06 1:21 ` Christoph Lameter
2004-10-07 19:45 ` Roland McGrath
2004-10-07 20:24 ` Christoph Lameter
2004-10-05 17:29 ` Christoph Lameter
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=200410052122.i95LMntn007340@magilla.sf.frob.com \
--to=roland@redhat.com \
--cc=akpm@osdl.org \
--cc=clameter@sgi.com \
--cc=drepper@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/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®