函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:See comment for __ktime_get_fast_ns() vs. timestamp ordering

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

返回类型:u64

参数:

类型参数名称
struct tk_fast *tkf
523  循环
524  seq等于raw_read_seqcount_latch( & seq)
525  tkr等于baseseq按位与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 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循环
535  返回:now
调用者
名称描述
ktime_get_real_fast_nsktime_get_real_fast_ns: - NMI safe and fast access to clock realtime.