Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\timekeeping.c Create Date:2022-07-28 10:42:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ktime_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

Proto:void ktime_get_ts64(struct timespec64 *ts)

Type:void

Parameter:

TypeParameterName
struct timespec64 *ts
882  tk = timekeeper
887  WARN_ON(lag for if timekeeping is suspended )
889  Do
890  seq = ad_seqcount_begin - begin a seq-read critical section*@s: pointer to seqcount_t* Returns: count to be passed to read_seqcount_retry* read_seqcount_begin opens a read critical section of the given seqcount
891  seconds = xtime_sec
892  nsec = timekeeping_get_ns( & tkr_mono)
893  tomono = wall_to_monotonic
895  When ad_seqcount_retry - end a seq-read critical section*@s: pointer to seqcount_t*@start: count, from read_seqcount_begin* Returns: 1 if retry is required, else 0* read_seqcount_retry closes a read critical section of the given seqcount cycle
897  seconds += seconds
898  nanoseconds = 0
899  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.
Caller
NameDescribe
posix_ktime_get_tsGet monotonic time for posix timers
do_clock_gettime
udelay_test_show
poll_select_set_timeoutpoll_select_set_timeout - helper function to setup the timeout value*@to: pointer to timespec64 variable for the final timeout*@sec: seconds (from user space)*@nsec: nanoseconds (from user space)* Note, we do not use a timespec for the user space value
poll_select_finish
ep_set_mstimeout
ktime_get_ts