函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ktime_get_coarse_with_offset

函数原型:ktime_t ktime_get_coarse_with_offset(enum tk_offsets offs)

返回类型:ktime_t

参数:

类型参数名称
enum tk_offsetsoffs
813  tk等于timekeeper
815  offset等于offsets[offs]
818  WARN_ON(lag for if timekeeping is suspended )
820  循环
821  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
822  base等于计算下一次触发时间(base, * offset)
823  nsecs等于xtime_nsec右移shift
825 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循环
827  返回:Add a ktime_t variable and a scalar nanosecond value.* res = kt + nsval:(base, nsecs)
调用者
名称描述
ktime_get_coarse_real
ktime_get_coarse_boottime
ktime_get_coarse_clocktai