lkml.org 
[lkml]   [2002]   [Feb]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Patch - sharing RTC timer between kernel and user space
On Thu, 28 Feb 2002, Roman Zippel wrote:

> Hi,
>
> On Thu, 28 Feb 2002, Jaroslav Kysela wrote:
>
> > Using the RTC timer is optional. The default timer is system timer, of
> > course.
>
> Who is setting up this timer? This patch can also be done in userspace:
>
> fd = open("/dev/rtc",...);
> ioctl(alsafd, RTCFD, fd);
>
> in the alsa driver you can do:
>
> file = fget(fd);
> ...
> if (file->f_op && file->f_op->ioctl)
> file->f_op->ioctl(file->f_dentry->d_inode, file, cmd, arg);
> ...
> fput(file);

We need also a callback called at interrupt time.

Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:20    [W:0.044 / U:1.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site