函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\timekeeping.c Create Date:2022-07-27 11:41:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

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

函数原型:static __always_inline u64 __ktime_get_fast_ns(struct tk_fast *tkf)

返回类型:u64

参数:

类型参数名称
struct tk_fast *tkf
457  循环
458  seq等于raw_read_seqcount_latch( & seq)
459  tkr等于baseseq按位与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 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循环
469  返回:now
调用者
名称描述
ktime_get_mono_fast_ns
ktime_get_raw_fast_ns