From: Clemens Ladisch <clemens@ladisch.de>
To: Jussi Laako <jussi@sonarnerd.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: HPET mmap() problem
Date: Mon, 16 Mar 2009 11:01:09 +0100 [thread overview]
Message-ID: <49BE2365.2070708@ladisch.de> (raw)
In-Reply-To: <49BC2D93.8090507@sonarnerd.net>
Jussi Laako wrote:
> In the JACK audio connection kit we have support for mmap() of /dev/hpet
> as our time source (as one of the possibilities). However, there's a
> nasty issue with the current driver as it reserves one of the three
> comparator-timers per each open() and denies further opens when the
> timers are exhausted. And in case it's already used as a system clock
> source, two of the timers are already reserved...
>
> However, we are only interested on the main counter value, and would
> like to have unlimited access from number of processes to this value
> through mmap() of the device.
>
> Any ideas/recommendations/suggestions on which way to change the driver
> to support this?
Don't allocate a hpet_dev in hpet_open but when hpet_ioctl is called for
the first time.
> Or even better, if someone is already working on this?
I'm planning to work on this.
HTH
Clemens
prev parent reply other threads:[~2009-03-16 10:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-14 22:20 HPET mmap() problem Jussi Laako
2009-03-16 10:01 ` Clemens Ladisch [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=49BE2365.2070708@ladisch.de \
--to=clemens@ladisch.de \
--cc=jussi@sonarnerd.net \
--cc=linux-kernel@vger.kernel.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