Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/ktime.h
Show First 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | |||||
#define ktime_to_timespec(kt) ns_to_timespec(kt) | #define ktime_to_timespec(kt) ns_to_timespec(kt) | ||||
#define ktime_to_timespec64(kt) ns_to_timespec(kt) | #define ktime_to_timespec64(kt) ns_to_timespec(kt) | ||||
#define ktime_to_timeval(kt) ns_to_timeval(kt) | #define ktime_to_timeval(kt) ns_to_timeval(kt) | ||||
#define ktime_to_ns(kt) (kt) | #define ktime_to_ns(kt) (kt) | ||||
#define ktime_get_ts(ts) getnanouptime(ts) | #define ktime_get_ts(ts) getnanouptime(ts) | ||||
#define ktime_get_ts64(ts) getnanouptime(ts) | #define ktime_get_ts64(ts) getnanouptime(ts) | ||||
#define ktime_get_raw_ts64(ts) getnanouptime(ts) | #define ktime_get_raw_ts64(ts) getnanouptime(ts) | ||||
#define ktime_get_real_ts64(ts) getnanotime(ts) | |||||
#define getrawmonotonic64(ts) getnanouptime(ts) | #define getrawmonotonic64(ts) getnanouptime(ts) | ||||
static inline int64_t | static inline int64_t | ||||
ktime_get_ns(void) | ktime_get_ns(void) | ||||
{ | { | ||||
struct timespec ts; | struct timespec ts; | ||||
ktime_get_ts(&ts); | ktime_get_ts(&ts); | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |