Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ktime_get_mono_fast_ns - Fast NMI safe access to clock monotonic* This timestamp is not guaranteed to be monotonic across an update

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

Type:u64

Parameter:

TypeParameterName
struct tk_fast *tkf
457  Do
458  seq = raw_read_seqcount_latch( & seq)
459  tkr = base + (seq & 0x01)
460  now = Convert ktime_t to nanoseconds
462  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))
467  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
469  Return now
Caller
NameDescribe
ktime_get_mono_fast_ns
ktime_get_raw_fast_ns