join
donate

SHM Refclock Driver, V2

Related Topics: bug_small.png Bug #1232

History

refclock_shm.c says, in part:

To add new modes: Extend or union the shmTime-struct. Do not extend/shrink size, because otherwise existing implementations will specify wrong size of shared memory-segment

PB 18.3.97

struct shmTime {
        int    mode; /* 0 - if valid set
                      *       use values,
                      *       clear valid
                      * 1 - if valid set
                      *       if count before and after read of values is equal,
                      *         use values
                      *       clear valid
                      */
        int    count;
        time_t clockTimeStampSec;
        int    clockTimeStampUSec;
        time_t receiveTimeStampSec;
        int    receiveTimeStampUSec;
        int    leap;
        int    precision;
        int    nsamples;
        int    valid;
        int    dummy[10];
};

Wish-List

  • Add a version number to struct shmTime
  • Support nanoseconds
  • We have a precision field. Do we also need a way to specify the particular CTL_SST_TS* value?

Proposed Changes

Discussion

 


This topic: Dev > WebHome > DevelopmentIssues > RefclockShmV2
Topic revision: r3 - 2011-03-17 - 19:53:42 - HarlanStenn
 
SSL security by CAcert
Get the CAcert Root Certificate
This site is powered by the TWiki collaboration platform
IPv6 Ready
Copyright & 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding the site? Send feedback