Lines Matching refs:rtc
5 * No standard, but see Documentation/rtc.txt in the linux kernel source..
7 USE_HWCLOCK(NEWTOY(hwclock, ">0(fast)f(rtc):u(utc)l(localtime)t(systz)s(hctosys)r(show)w(systohc)[-ul][!rtsw]", TOYFLAG_SBIN))
17 -f FILE Use specified device file instead of /dev/rtc (--rtc)
28 #include <linux/rtc.h>
42 sprintf(toybuf, "/sys/class/rtc/%s/hctosys", node->name);
82 // Open /dev/rtc (if your system has no /dev/rtc symlink, search for it).
83 if (!TT.f && (fd = open("/dev/rtc", flag)) == -1) {
84 dirtree_read("/sys/class/rtc", rtc_find);
85 if (!TT.f) TT.f = "/dev/misc/rtc";
89 // Get current time in seconds from rtc device. todo: get subsecond time