summaryrefslogtreecommitdiff
path: root/sys/man/3/rtc
blob: da30231fe3149faae24b87471789f1a5e90be431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.TH RTC 3
.SH NAME
rtc \- real-time clock and non-volatile RAM
.SH SYNOPSIS
.B bind #r /dev
.PP
.B /dev/rtc
.br
.B /dev/nvram
.SH DESCRIPTION
The
.I rtc
device supports devices
with real-time clocks and non-volatile RAM.
.PP
The
.B rtc
file behaves just like
.BR /dev/time
(see
.IR cons (3)).
The real-time clock is maintained on-board;
.B /dev/time
is set from the file server.  Neither is necessarily more accurate.
.PP
The
.B nvram
file provides (if permission allows)
access to the local non-volatile RAM.
For example,
.IR boot (8)
reads the machine's key
from there
(see
.IR auth (8)).
.SH SEE ALSO
.IR auth (8),
.IR boot (8)
.SH SOURCE
.B /sys/src/9/*/devrtc.c