[LinuxPPS] linuxpps-v5.3.2 is missing ioctl32 compatibility
Rodolfo Giometti
giometti at enneenne.com
Tue Oct 28 15:44:21 CET 2008
On Tue, Oct 28, 2008 at 08:13:30PM +1100, Cirilo Bernardo wrote:
> On Tue, Oct 28, 2008 at 11:02 AM, George Spelvin <linux at horizon.com> wrote:
> > I'm staring at the code, trying to figure out why ntpd breaks linuxpps.
> >
> [snip]
> > 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.
> >
>
>
> There has been some discussion before that a possible execution path
> within ntpd may set the line discipline back to N_TTY (or perhaps the
> request to change the line discipline is not handled correctly by the
> serial driver?)
I vote for the first case! ;)
> I don't see a point in being able to use both CAPTUREASSERT and
> CAPTURECLEAR - usually only one of these provides a reliable timing
> reference and the other will have a (usually) unspecified jitter.
> Also, if the association is on a per-file descriptor basis, how do we
> make the selection without trying to push more changes through NTPD?
I agree, also what happens if we three users asking for different
settings? :)
Ciao,
Rodolfo
--
GNU/Linux Solutions e-mail: giometti at enneenne.com
Linux Device Driver giometti at linux.it
Embedded Systems phone: +39 349 2432127
UNIX programming skype: rodolfo.giometti
More information about the LinuxPPS
mailing list