Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:mespec64_add_ns - Adds nanoseconds to a timespec64*@a: pointer to timespec64 to be incremented*@ns: unsigned nanoseconds value to be added* This must always be inlined because its used from the x86-64 vdso,* which cannot call other kernel functions.

Proto:static __always_inline void timespec64_add_ns(struct timespec64 *a, u64 ns)

Type:void

Parameter:

TypeParameterName
struct timespec64 *a
u64ns
156  seconds += __iter_div_u64_rem( nanoseconds + ns, NSEC_PER_SEC, & ns)
157  nanoseconds = ns
Caller
NameDescribe
ktime_get_real_ts64ktime_get_real_ts64 - Returns the time of day in a timespec64.*@ts: pointer to the timespec to be set* Returns the time of day in a timespec64 (WARN if suspended).
ktime_get_ts64ktime_get_ts64 - get the monotonic clock in timespec64 format*@ts: pointer to timespec variable* The function calculates the monotonic clock from the realtime* clock and the wall_to_monotonic offset and stores the result
ktime_get_raw_ts64ktime_get_raw_ts64 - Returns the raw monotonic time in a timespec*@ts: pointer to the timespec64 to be set* Returns the raw monotonic time (completely un-modified by ntp)