|
Linux Kernel
3.7.1
|
#include <uapi/linux/timex.h>#include <linux/compiler.h>#include <linux/types.h>#include <linux/param.h>#include <asm/timex.h>Go to the source code of this file.
Macros | |
| #define | ADJ_ADJTIME 0x8000 /* switch between adjtime/adjtimex modes */ |
| #define | ADJ_OFFSET_SINGLESHOT 0x0001 /* old-fashioned adjtime */ |
| #define | ADJ_OFFSET_READONLY 0x2000 /* read-only adjtime */ |
| #define | SHIFT_PLL 2 /* PLL frequency factor (shift) */ |
| #define | SHIFT_FLL 2 /* FLL frequency factor (shift) */ |
| #define | MAXTC 10 /* maximum time constant (shift) */ |
| #define | SHIFT_USEC 16 /* frequency offset scale (shift) */ |
| #define | PPM_SCALE ((s64)NSEC_PER_USEC << (NTP_SCALE_SHIFT - SHIFT_USEC)) |
| #define | PPM_SCALE_INV_SHIFT 19 |
| #define | PPM_SCALE_INV |
| #define | MAXPHASE 500000000L /* max phase error (ns) */ |
| #define | MAXFREQ 500000 /* max frequency error (ns/s) */ |
| #define | MAXFREQ_SCALED ((s64)MAXFREQ << NTP_SCALE_SHIFT) |
| #define | MINSEC 256 /* min interval between updates (s) */ |
| #define | MAXSEC 2048 /* max interval between updates (s) */ |
| #define | NTP_PHASE_LIMIT ((MAXPHASE / NSEC_PER_USEC) << 5) /* beyond max. dispersion */ |
| #define | shift_right(x, s) |
| #define | NTP_SCALE_SHIFT 32 |
| #define | NTP_INTERVAL_FREQ (HZ) |
| #define | NTP_INTERVAL_LENGTH (NSEC_PER_SEC/NTP_INTERVAL_FREQ) |
| #define | PIT_TICK_RATE 1193182ul |
Functions | |
| void | ntp_init (void) |
| void | ntp_clear (void) |
| u64 | ntp_tick_length (void) |
| int | second_overflow (unsigned long secs) |
| int | do_adjtimex (struct timex *) |
| void | hardpps (const struct timespec *, const struct timespec *) |
| int | read_current_timer (unsigned long *timer_val) |
Variables | |
| unsigned long | tick_usec |
| unsigned long | tick_nsec |
| #define ADJ_ADJTIME 0x8000 /* switch between adjtime/adjtimex modes */ |
| #define ADJ_OFFSET_SINGLESHOT 0x0001 /* old-fashioned adjtime */ |
| #define MAXFREQ_SCALED ((s64)MAXFREQ << NTP_SCALE_SHIFT) |
| #define NTP_INTERVAL_LENGTH (NSEC_PER_SEC/NTP_INTERVAL_FREQ) |
| #define NTP_PHASE_LIMIT ((MAXPHASE / NSEC_PER_USEC) << 5) /* beyond max. dispersion */ |
| #define PPM_SCALE ((s64)NSEC_PER_USEC << (NTP_SCALE_SHIFT - SHIFT_USEC)) |
| #define PPM_SCALE_INV |
1.8.2