[LinuxPPS] linuxpps-v5.3.2 is missing ioctl32 compatibility

George Spelvin linux at horizon.com
Tue Oct 28 01:02:28 CET 2008


I'm staring at the code, trying to figure out why ntpd breaks linuxpps.

Even killing it and running ppstest just produces a series of...
/usr/src/linux/Documentation/pps/ppstest /dev/pps0
trying PPS source "/dev/pps0"
found PPS source "/dev/pps0"
ok, found 1 source(s), now start fetching data...
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)
time_pps_fetch() error -1 (Connection timed out)

... although killing ppsldisc and restarting it ressurects it.

Anyway, it looks to me like it would be generally better design to
associate the PPS params with the file descriptor rather than the
device.  So you could have two users, one asking for CAPTUREASSERT
and the other asking for CAPTURECLEAR.  And each user could have
their own offsets and/or timestamp format.

It would complicate the poll wakeup a bit, but sure give a cleaner
programming model.



More information about the LinuxPPS mailing list