[LinuxPPS] [PATCH] time_pps_readlink()

Rodolfo Giometti giometti at linux.it
Sun Aug 13 15:06:58 CEST 2006


On Sun, Aug 13, 2006 at 02:54:43PM +0200, Udo van den Heuvel wrote:
> Rodolfo Giometti wrote:
> 
> [...[
> 
> > to this code:
> > 
> >    +#ifdef PPS_HAVE_FINDPATH
> >    +      /* Get the PPS source's real name */
> >    +      time_pps_readlink(link, STRING_LEN, path, STRING_LEN);
> >    +
> >    +      /* Try to find the source */
> >    +      fd = time_pps_findpath(path, STRING_LEN, id, STRING_LEN);
> >    +      if (fd < 0) {
> >    +              msyslog(LOG_ERR, "refclock: cannot find PPS source \"%s\" in the system",
> >    PPS_DEVICE);
> >    +              return 1;
> >    +      }
> >    +      msyslog(LOG_INFO, "refclock: found PPS source \"%s\" at id #%d on \"%s\"", PPS_DEV
> >    ICE, fd, id);
> >    +#endif   /* PPS_HAVE_FINDPATH */
> 
> Where does PPS_DEVICE come from? (where is it declared, filled, etc?)
> I could not locate that info in include/linux/timepps.h.

Mmm... that is just an example code, maybe it should be replaced with
the "path" variable.

Ciao,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at gnudd.com
Embedded Systems                     		giometti at linux.it
UNIX programming                     phone:     +39 349 2432127



More information about the LinuxPPS mailing list