Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:ktime_t ktime_get_update_offsets_now(unsigned int *cwsseq, ktime_t *offs_real, ktime_t *offs_boot, ktime_t *offs_tai)

Type:ktime_t

Parameter:

TypeParameterName
unsigned int *cwsseq
ktime_t *offs_real
ktime_t *offs_boot
ktime_t *offs_tai
2216  tk = timekeeper
2221  Do
2222  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
2224  base = base
2225  nsecs = timekeeping_get_ns( & tkr_mono)
2226  base = Add a ktime_t variable and a scalar nanosecond value.* res = kt + nsval:(base, nsecs)
2228  If cwsseq != clock_was_set_seq Then
2230  offs_real = offs_real
2231  offs_boot = offs_boot
2232  offs_tai = offs_tai
2236  If Value for the false possibility is greater at compile time(base >= next_leap_ktime) Then offs_real = Subtract two ktime_t variables. rem = lhs -rhs: (offs_real, 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.)
2239  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
2241  Return base