mbgtools-lx  4.2.8
ntp_shm.c File Reference
#include <ntp_shm.h>
#include <syslog.h>
#include <errno.h>
#include <string.h>

Go to the source code of this file.

Macros

#define _NTP_SHM
 

Functions

struct shmTimegetShmTime (int unit)
 
int ntpshm_init (struct shmTime **shmTime, int n_units, int n_unit0)
 

Macro Definition Documentation

◆ _NTP_SHM

#define _NTP_SHM

Definition at line 22 of file ntp_shm.c.

Function Documentation

◆ getShmTime()

struct shmTime* getShmTime ( int  unit)

Definition at line 33 of file ntp_shm.c.

References NTPD_BASE.

Referenced by ntpshm_init().

◆ ntpshm_init()

int ntpshm_init ( struct shmTime **  shmTime,
int  n_units,
int  n_unit0 
)

Definition at line 62 of file ntp_shm.c.

References getShmTime(), shmTime::mode, n_unit0, n_units, shmTime::nsamples, and shmTime::precision.

Referenced by do_mbgsvctasks().