[ntp:questions] new driver development

Bruce Lilly bruce.lilly at gmail.com
Mon Mar 28 03:58:51 UTC 2011


On Fri, 18 Mar 2011 13:32:11 +0000, Dave Hart wrote:

> It is not clear to me the two drivers need to be side-by-side differing
> implementations in one driver.  I suspect "server 127.127.28.x mode 2"
> can reasonably mean "using POSIX named shared memory of the form
> /ntpshm/[unit]" and either the existing shm structure, or a variant with
> fixed-sized elements.

Gack! No! From TFM: "The  interpretation  of  slash characters other
than the leading slash character in name is implementation-defined."
Don't do that unless you like dealing with lots of implementation
dependencies.

And the existing SHM driver memory structure is unsuitable for a
variety of reasons, as previously mentioned (e.g. word size and
byte order issues, no nanosecond support, no proper locking, etc.).




More information about the questions mailing list