Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/include/linux/ktime.h
Context not available. | |||||
return (lhs + rhs); | return (lhs + rhs); | ||||
} | } | ||||
static inline int | |||||
ktime_compare(const ktime_t cmp1, const ktime_t cmp2) | |||||
{ | |||||
if (cmp1 < cmp2) | |||||
return -1; | |||||
if (cmp1 > cmp2) | |||||
return 1; | |||||
return 0; | |||||
} | |||||
static inline bool | |||||
ktime_after(const ktime_t cmp1, const ktime_t cmp2) | |||||
{ | |||||
return ktime_compare(cmp1, cmp2) > 0; | |||||
} | |||||
static inline ktime_t | static inline ktime_t | ||||
timespec_to_ktime(struct timespec ts) | timespec_to_ktime(struct timespec ts) | ||||
{ | { | ||||
Context not available. | |||||
} | } | ||||
#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_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) | ||||
Context not available. |