KTIME_TO_TIMESPEC_CO(9) Driver Basics KTIME_TO_TIMESPEC_CO(9)NAMEktime_to_timespec_cond - convert a ktime_t variable to timespec format
only if the variable contains data
SYNOPSIS
bool ktime_to_timespec_cond(const ktime_t kt, struct timespec * ts);
ARGUMENTS
kt
the ktime_t variable to convert
ts
the timespec variable to store the result in
DESCRIPTION
Returns true if there was a successful conversion, false if kt was 0.
COPYRIGHTKernel Hackers Manual 3.11 November 2013 KTIME_TO_TIMESPEC_CO(9)