Re: NTP time sync

From: Michael Raskin
Date: Sun Nov 26 2006 - 17:11:11 EST


Joakim Tjernlund wrote:
Is that the way it is supposed to be? How do I create a
static /dev/rtcN in my /dev
directory if the major number isn't fixed?
Maybe I am just missing something, feel free to correct me :)
udev ;)

the concept of static numbers is quite old...

Yes it is old, but is the old way unsupported now? I have an embedded target
which is using the old static /dev directory, do I need to make
it udev aware to use newer features like the rtc subsystem?
Really you do not have to make it udev aware, it is enough to make it sysfs aware. You will be done by reading /sys/class/misc/rtc/dev on initialization and replacing /dev/rtcN with device with the address read. If you have configuration static enough, I guess you can even create it once and for life of current setup with current kernel.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/