Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\ktime.h Create Date:2022-07-28 05:35:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ktime_set - Set a ktime_t variable from a seconds/nanoseconds value*@secs: seconds to set*@nsecs: nanoseconds to set* Return: The ktime_t representation of the value.

Proto:static inline ktime_t ktime_set(const s64 secs, const unsigned long nsecs)

Type:ktime_t

Parameter:

TypeParameterName
const s64secs
const unsigned longnsecs
39  If Value for the false possibility is greater at compile time(secs >= KTIME_SEC_MAX) Then Return KTIME_MAX
42  Return secs * NSEC_PER_SEC + nsecs
Caller
NameDescribe
ktime_add_safeAdd two ktime values and do a safety check for overflow:
tk_set_wall_to_mono
__timekeeping_set_tai_offset__timekeeping_set_tai_offset - Sets the TAI offset from UTC and monotonic
ktime_get_update_offsets_nowktime_get_update_offsets_now - hrtimer helper*@cwsseq: pointer to check and store the clock was set sequence number*@offs_real: pointer to storage for monotonic -> realtime offset*@offs_boot: pointer to storage for monotonic -> boottime offset*@offs_tai:
ntp_get_next_leapp_get_next_leap - Returns the next leapsecond in CLOCK_REALTIME ktime_t* Provides the time of the next leapsecond against CLOCK_REALTIME in* a ktime_t format. Returns KTIME_MAX if no leapsecond is pending.
torture_shutdown_initStart up the shutdown task.
timespec_to_ktimevert a timespec to ktime_t format:
timespec64_to_ktimevert a timespec64 to ktime_t format:
timeval_to_ktimevert a timeval to ktime_t format: