函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ktime_get_with_offset

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

返回类型:ktime_t

参数:

类型参数名称
enum tk_offsetsoffs
792  tk等于timekeeper
794  offset等于offsets[offs]
797  WARN_ON(lag for if timekeeping is suspended )
799  循环
800  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
801  base等于计算下一次触发时间(base, * offset)
802  nsecs等于timekeeping_get_ns( & tkr_mono)
804 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循环
806  返回:Add a ktime_t variable and a scalar nanosecond value.* res = kt + nsval:(base, nsecs)
调用者
名称描述
ktime_get_realktime_get_real - get the real (wall-) time in ktime_t format
ktime_get_boottime取运行时间
ktime_get_clocktaiktime_get_clocktai - Returns the TAI time of day in ktime_t format