Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:See comment for __ktime_get_fast_ns() vs. timestamp ordering

Proto:static __always_inline u64 __ktime_get_real_fast_ns(struct tk_fast *tkf)

Type:u64

Parameter:

TypeParameterName
struct tk_fast *tkf
523  Do
524  seq = raw_read_seqcount_latch( & seq)
525  tkr = base + (seq & 0x01)
526  now = Convert ktime_t to nanoseconds
528  now += timekeeping_delta_to_ns(tkr, clocksource_delta(k_clock_read - atomic clocksource read() helper* This helper is necessary to use in the read paths because, while the* seqlock ensures we don't return a bad value while structures are updated,* it doesn't protect from potential crashes, cycle_last, mask))
533  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
535  Return now
Caller
NameDescribe
ktime_get_real_fast_nsktime_get_real_fast_ns: - NMI safe and fast access to clock realtime.