Home | History | Annotate | Download | only in linux

Lines Matching refs:timespec

12 struct timespec {
30 /* Parameters used to convert the timespec values: */
39 static inline int timespec_equal(struct timespec *a, struct timespec *b)
49 static inline int timespec_compare(struct timespec *lhs, struct timespec *rhs)
71 extern void set_normalized_timespec(struct timespec *ts, time_t sec, long nsec);
76 static inline struct timespec timespec_sub(struct timespec lhs,
77 struct timespec rhs)
79 struct timespec ts_delta;
86 * Returns true if the timespec is norm, false if denorm:
91 extern struct timespec xtime;
92 extern struct timespec wall_to_monotonic;
102 struct timespec current_kernel_time(void);
105 #define CURRENT_TIME_SEC ((struct timespec) { xtime.tv_sec, 0 })
108 extern int do_settimeofday(struct timespec *tv);
109 extern int do_sys_settimeofday(struct timespec *tv, struct timezone *tz);
117 extern void getnstimeofday(struct timespec *tv);
119 extern struct timespec timespec_trunc(struct timespec t, unsigned gran);
123 * timespec_to_ns - Convert timespec to nanoseconds
124 * @ts: pointer to the timespec variable to be converted
126 * Returns the scalar nanosecond representation of the timespec
129 static inline s64 timespec_to_ns(const struct timespec *ts)
148 * ns_to_timespec - Convert nanoseconds to timespec
151 * Returns the timespec representation of the nsec parameter.
153 extern struct timespec ns_to_timespec(const s64 nsec);
164 * timespec_add_ns - Adds nanoseconds to a timespec
165 * @a: pointer to timespec to be incremented
168 static inline void timespec_add_ns(struct timespec *a, u64 ns)
196 struct timespec it_interval; /* timer period */
197 struct timespec it_value; /* timer expiration */