[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20060729204107.GA20890@gnuppy.monkey.org>
Date: Sat, 29 Jul 2006 13:41:07 -0700
From: Bill Huey (hui) <billh@...ppy.monkey.org>
To: Neil Horman <nhorman@...driver.com>
Cc: Jim Gettys <jg@...top.org>, "H. Peter Anvin" <hpa@...or.com>,
Dave Airlie <airlied@...il.com>,
Segher Boessenkool <segher@...nel.crashing.org>,
linux-kernel@...r.kernel.org, a.zummo@...ertech.it,
jg@...edesktop.org, Keith Packard <keithp@...thp.com>,
"Bill Huey (hui)" <billh@...ppy.monkey.org>
Subject: Re: [PATCH] RTC: Add mmap method to rtc character driver
On Sat, Jul 29, 2006 at 08:54:27AM -0400, Neil Horman wrote:
> On Fri, Jul 28, 2006 at 09:28:20PM -0700, Bill Huey wrote:
> > Not to poop on people's parade, but the last time I looked /dev/rtc was
> > a single instance device, right ? If this reasoning is true, then mplayer
> > and other apps that want to open it can't.
> >
> > What's the story with this ?
> >
> Its always been the case. Its hardware can only support one timer (or at least
> one timer period), and as such multiple users would interefere with each other.
Well, this points out a serious problem with doing an mmap extension to
/dev/rtc. It would be better to have a page mapped by another device like
/dev/jiffy_counter, or something like that rather than to overload the
/dev/rtc with that functionality. The semantic for this change is shadey
in the first place so you should consider that option. It basically means
that, if Xorg, adopts this interface, no userspace applications can get at
and use the 'rtc' for any existing purposes with X running (mplayer and
friends).
It's not a really usable interface for Keith's purposes because of this
and it is a serious problem. You might want to consider writting special
device to do this like I mentioned above instead of mmap extension to
'rtc'.
bill
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists