Kevin Chu (kevin@portal.ca)
Sun, 17 Jan 1999 02:56:35 -0800
Mike Montour wrote:
> On Fri, 15 Jan 1999, Kevin Chu wrote:
>
> > How does one look at /dev/rtc?
>
> Try /proc/rtc instead.
[[root@localhost kevin]# find / -iregex '.*rtc' -print
/dev/rtc
[[root@localhost kevin]#
(I do have the /proc filesystem.)
Hmmm, looks like there's no way to look at rtc without writing some
code and reading more documentation. From
/usr/src/linux-2.0.35/Documentation/rtc.txt:
> [...]
> the last read. Status information is reported through the pseudo-file
> /proc/rtc if the /proc filesystem was enabled. The driver has built in
> locking so that only one process is allowed to have the /dev/rtc
> interface open at a time.
>
> A user process can monitor these interrupts by doing a read(2) or a
> select(2) on /dev/rtc -- either will block/stop the user process until
> the next interrupt is received. This is useful for things like
> [...]
Kevin
-- Kevin Chu kevin@portal.ca http://members.tripod.com/~super_kevin/
This archive was generated by hypermail 2.0b3 on Sun 17 Jan 1999 - 02:57:04 PST