Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 28 Feb 2002 15:58:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 28 Feb 2002 15:57:24 -0500 Received: from gate.perex.cz ([194.212.165.105]:32261 "EHLO gate.perex.cz") by vger.kernel.org with ESMTP id ; Thu, 28 Feb 2002 15:57:12 -0500 Date: Thu, 28 Feb 2002 21:56:09 +0100 (CET) From: Jaroslav Kysela X-X-Sender: To: Roman Zippel cc: Pavel Machek , LKML Subject: Re: Patch - sharing RTC timer between kernel and user space In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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 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/