diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-22 20:52:35 +0000 |
| commit | 46439007cf417cbd9ac8049bb4122c890097a0fa (patch) | |
| tree | 6fdb25e5f3a2b6d5657eb23b35774b631d4d97e4 /man/3/rtc | |
| parent | 37da2899f40661e3e9631e497da8dc59b971cbd0 (diff) | |
20060303-partial
Diffstat (limited to 'man/3/rtc')
| -rw-r--r-- | man/3/rtc | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/man/3/rtc b/man/3/rtc new file mode 100644 index 00000000..72d32400 --- /dev/null +++ b/man/3/rtc @@ -0,0 +1,60 @@ +.TH RTC 3 +.SH NAME +rtc \- real-time clock and non-volatile memory +.SH SYNOPSIS +.B bind -b '#r' /dev +.PP +.B /dev/rtc +.br +.B /dev/rtcid +.br +.B /dev/nvram +.SH DESCRIPTION +The +.I rtc +device provides access to the real-time clock and any associated non-volatile memory. +Physical devices supported include the Mostek MK48T12-15 Zeropower/Timekeeper, +the Dallas Semiconductor DS1687 real-time clock, +and the IBM PC real-time clock on various platforms. +.PP +The +.B rtc +file when read returns the time as a decimal number, expressed as the number of seconds since the epoch, +1 January 1970 00:00 GMT. +The clock is set by writing the desired number of seconds since the epoch to the file. +Setting the time in this device has no effect on system time returned by +.B /dev/time +(see +.IR cons (3)), +which must be set separately if desired. +For example, when +.I rtc +is available +.I osinit +(see +.IR init (8)) +uses it to set +.BR /dev/time . +.PP +The +.B nvram +file provides access to the non-volatile memory commonly implemented +by these clock chips. +There are no cross-platform standards for the range of addresses that +can be safely used by Inferno, or for the content and format of the data. +.PP +The +.B rtcid +file holds a decimal number giving the serial number of the device, +set during manufacturing. +The file exists only if a particular device provides such a number. +.SH SOURCE +.B /os/*/devrtc.c +.SH SEE ALSO +.IR cons (3) +.SH BUGS +The +.B rtc +file returns seconds but +.B /dev/time +returns microseconds: it's history. |
