Symbolic link in /dev & NTP

Hello!

I’m trying to use QNX platfom as a NTP server.

I install ntpd and execute it with a local clock as a time source. It works.
Then I tried to use GPS (Trimble Lassen SKII) receiver as a time source. To
use generic reference clock driver I need to create symbolic link (link to
serial port driver) /dev/refclock-0. So I can’t do it. System can’t create a
symbolic link in /dev.
Why? For example, Linux can to create symbolic links in /dev.

Pkun <serjgrey@mail.ru> wrote:

I install ntpd and execute it with a local clock as a time source. It works.
Then I tried to use GPS (Trimble Lassen SKII) receiver as a time source. To
use generic reference clock driver I need to create symbolic link (link to
serial port driver) /dev/refclock-0. So I can’t do it. System can’t create a
symbolic link in /dev.
Why? For example, Linux can to create symbolic links in /dev.

Differences in the way that the file namespace is handled. Under Linux
(I’m somewhat hazy on this, so I might be wrong), /dev is a real directory
and you can put regular files there. Under QNX, /dev is a fake directory
that only exists as a data structure in procnto. What can you do is
create a process manager prefix:

ln -sP /dev/ser??? /dev/refclock-0

Note that this prefix is also just a data structure in procnto, so
you have to re-execute the above command every time the system is
booted to re-establish the link.

\

Brian Stecher (bstecher@qnx.com) QNX Software Systems, Ltd.
phone: +1 (613) 591-0931 (voice) 175 Terence Matthews Cr.
+1 (613) 591-3579 (fax) Kanata, Ontario, Canada K2M 1W8