[LinuxPPS] PPS next steps...

Rodolfo Giometti giometti at enneenne.com
Mon Feb 9 12:19:42 CET 2009


On Mon, Feb 09, 2009 at 05:44:19AM -0500, George Spelvin wrote:
> 
> Um... I want "cat /dev/pps0" to produce something useful.  I took your
> first reply above to indicate that you'd like that in the future, too.
> But you didn't like my suggestion for the format.  So what would
> you like?
> 
> Are we arguing about whether "cat /dev/pps0" should produce something
> useful?  Or about what that useful thing should look like?

The second one. :) Also I don't like read() methods whose can break
read(2) semantic.

> > Please, propose your patch but keep in mind read(2) semantic.
> 
> I'll happily propose one, but you objected to my ideas about the format.
> Should I go ahead anyway (using my format which you don't like) and we'll
> argue about the format later?

Ok. I think this could be the right-thing(TM) to do. :)

> >> The format can be translated.  I just think that read(2) is a more
> >> convenient (although less portable) mechanism than the PPS API.
> >> The intent is for it to be equivalent.
> >
> > I don't understand you: are telling to me that you wish to replace PPS
> > API in some way? =:-o
> 
> No.  the RFC2783 interface is sacred. Even the broken bits, like the
> fact that it returns ETIMEDOUT rather than EAGAIN if there is no event
> ready to read.
> 
> But that's a function call interface, a library interface.
> 
> I was proposing an additional, Linux-specific (thus "less portable")
> way to get at the data: cat /dev/pps0.

Ok.

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