]> git.hungrycats.org Git - linux/commit
[PATCH] Patch - sharing RTC timer between kernel and user space (2nd)
authorJaroslav Kysela <perex@suse.cz>
Tue, 26 Feb 2002 03:43:26 +0000 (19:43 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Tue, 26 Feb 2002 03:43:26 +0000 (19:43 -0800)
commitdd56376dcd8c94342857257aa34a5720baeb807a
tree083be3c32622e2c42916f91086d2378d9029987f
parent7d06adb8c0bdd05a4e83156b95f3a3ea0597439b
[PATCH] Patch - sharing RTC timer between kernel and user space (2nd)

This patch to allow using of RTC timer inside the kernel space.  We can
use the RTC timer as timing source for ALSA sequencer. Patch by Takashi.

The patch adds these three functions and one structure to rtc.h and
rtc.c:

typedef struct rtc_task {
       void (*func)(void *private_data);
       void *private_data;
} rtc_task_t;

int rtc_register(rtc_task_t *task);
int rtc_unregister(rtc_task_t *task);
int rtc_control(rtc_task_t *t, unsigned int cmd, unsigned long arg);

Jaroslav
drivers/char/Makefile
drivers/char/rtc.c
include/linux/rtc.h