Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
union | ktime |
Macros | |
#define | LOW_RES_NSEC TICK_NSEC |
#define | KTIME_LOW_RES (ktime_t){ .tv64 = LOW_RES_NSEC } |
#define | ktime_get_real_ts(ts) getnstimeofday(ts) |
Typedefs | |
typedef union ktime | ktime_t |
Functions | |
ktime_t | ktime_add_ns (const ktime_t kt, u64 nsec) |
ktime_t | ktime_sub_ns (const ktime_t kt, u64 nsec) |
ktime_t | ktime_add_safe (const ktime_t lhs, const ktime_t rhs) |
void | ktime_get_ts (struct timespec *ts) |
#define ktime_get_real_ts | ( | ts | ) | getnstimeofday(ts) |
#define KTIME_LOW_RES (ktime_t){ .tv64 = LOW_RES_NSEC } |
ktime_add_ns - Add a scalar nanoseconds value to a ktime_t variable : addend : the scalar nsec value to add
Returns the sum of and in ktime_t format
ktime_add_ns - Add a scalar nanoseconds value to a ktime_t variable : addend : the scalar nsec value to add
Returns the sum of kt and nsec in ktime_t format
ktime_get_ts - get the monotonic clock in timespec format : pointer to timespec variable
The function calculates the monotonic clock from the realtime clock and the wall_to_monotonic offset and stores the result in normalized timespec format in the variable pointed to by .
Definition at line 279 of file timekeeping.c.