lkml.org 
[lkml]   [2007]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux
    On Thu, Feb 22, 2007 at 12:51:48AM +0100, Roman Zippel wrote:
    > Hi,
    >
    > On Wednesday 21 February 2007 13:04, Rodolfo Giometti wrote:
    >
    > > RFC simply doesn't consider the fact that you can have a PPS source
    > > __without__ a filedes connected with, and a single filedes is
    > > considered __always__ connected with a single PPS source.
    >
    > That's not entirely true. It doesn't say that pps_handle_t must be a file
    > descriptor and it leaves the option for the argument to time_pps_create() not
    > to be a file descriptor as well.

    Yes. In fact that's my solution!

    The problem is that "pps_handle_t" is forced by the RFC to be a scalar
    and _not_ a generic (and opaque) type. I suppose that since right now
    such handler was simply the filedes of the serial/parallel port
    connected with the GPS antenna. But this is not always the case. As
    already told the GPS antenna can be connected with the serial line
    while the PPS signal is not, so NTPD should always open the serial
    port to read GPS data but it must not use such filedes for the
    time_pps_create().

    My support try to resolve this problem with minor changes in both RFC
    and NTPD code.

    Ciao,

    Rodolfo

    --

    GNU/Linux Solutions e-mail: giometti@enneenne.com
    Linux Device Driver giometti@gnudd.com
    Embedded Systems giometti@linux.it
    UNIX programming phone: +39 349 2432127
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-02-22 10:03    [W:2.215 / U:0.608 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site