From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Richard Cochran <richardcochran@gmail.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-api@vger.kernel.org
Subject: Re: [PATCH 2/2] posix clocks: introduce a sysfs presence.
Date: Fri, 10 Sep 2010 00:00:08 +0100 [thread overview]
Message-ID: <20100910000008.1483fdd7@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <84124d2479b8967cac2b35f852fc0fcae6ad9444.1283504065.git.richard.cochran@omicron.at>
On Fri, 3 Sep 2010 11:30:13 +0200
Richard Cochran <richardcochran@gmail.com> wrote:
> This patch adds a 'timesource' class into sysfs. Each registered POSIX
> clock appears by name under /sys/class/timesource. The idea is to
> expose to user space the dynamic mapping between clock devices and
> clock IDs.
This is intrinsically racy so not a good API at all.
By the time I have acquired an id from sysfs it may have been re-issued
or changed.
POSIX habit of enumerating objects not properties of objects is one of
the brain dead aspects of POSIX that we should have nothing to do with.
Also we have existing time sources that don't follow the poxix clock
model - I can open /dev/rtc and I can open the hpet and so on.
I like /sys/class/time* *but* you need to be able to open the sysfs
device and apply operations to it in order for it to work when your closk
can be dynamically created and destroyed and to get a sane Unix API.
To start with try applying permissions to clock sources via the POSIX
API. That is something that will be required for some applications.
I need to be able to open sys/clock/foo/something and get a meaningful
handle. Sure it's quite likely the operations it supports are related to
the POSIX timer ops.
Alan
next prev parent reply other threads:[~2010-09-09 22:40 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-03 9:27 [PATCH 0/2] [RFC] posix clock tuning Richard Cochran
2010-09-03 9:29 ` [PATCH 1/2] posix clocks: introduce a syscall for " Richard Cochran
2010-09-03 9:58 ` Richard Cochran
2010-09-04 14:06 ` Richard Cochran
2010-09-09 10:49 ` Thomas Gleixner
2010-09-09 13:34 ` Richard Cochran
2010-09-09 20:10 ` Thomas Gleixner
2010-09-09 21:16 ` Thomas Gleixner
2010-09-09 22:53 ` john stultz
2010-09-10 9:23 ` Richard Cochran
2010-09-09 21:01 ` john stultz
2010-09-09 21:31 ` Thomas Gleixner
2010-09-03 9:30 ` [PATCH 2/2] posix clocks: introduce a sysfs presence Richard Cochran
2010-09-09 22:19 ` john stultz
2010-09-09 23:00 ` Alan Cox [this message]
2010-09-10 9:31 ` Richard Cochran
2010-09-11 0:20 ` Greg KH
2010-09-04 17:23 ` [PATCH 0/2] [RFC] posix clock tuning Christoph Lameter
2010-09-04 17:48 ` Christian Riesch
2010-09-05 1:37 ` Christoph Lameter
2010-09-05 5:56 ` Richard Cochran
2010-09-05 1:47 ` Christoph Lameter
2010-09-05 6:22 ` Richard Cochran
2010-09-05 7:20 ` Richard Cochran
2010-09-05 23:13 ` Christoph Lameter
2010-09-06 7:09 ` Richard Cochran
2010-09-09 9:58 ` Thomas Gleixner
2010-09-09 12:21 ` Richard Cochran
2010-09-09 12:50 ` Thomas Gleixner
2010-09-09 15:02 ` Alan Cox
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=20100910000008.1483fdd7@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=richardcochran@gmail.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
all inboxes | Powered by JetHome®