函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ktime_get_update_offsets_now - hrtimer helper*@cwsseq: pointer to check and store the clock was set sequence number*@offs_real: pointer to storage for monotonic -> realtime offset*@offs_boot: pointer to storage for monotonic -> boottime offset*@offs_tai:

函数原型:ktime_t ktime_get_update_offsets_now(unsigned int *cwsseq, ktime_t *offs_real, ktime_t *offs_boot, ktime_t *offs_tai)

返回类型:ktime_t

参数:

类型参数名称
unsigned int *cwsseq
ktime_t *offs_real
ktime_t *offs_boot
ktime_t *offs_tai
2216  tk等于timekeeper
2221  循环
2222  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
2224  base等于base
2225  nsecs等于timekeeping_get_ns( & tkr_mono)
2226  base等于Add a ktime_t variable and a scalar nanosecond value.* res = kt + nsval:(base, nsecs)
2228  如果cwsseq不等于clock_was_set_seq
2230  offs_real等于offs_real
2231  offs_boot等于offs_boot
2232  offs_tai等于offs_tai
2236  如果此条件成立可能性小(为编译器优化)(base >= next_leap_ktime)则offs_real等于Subtract two ktime_t variables. rem = lhs -rhs: (offs_real, ktime_set - Set a ktime_t variable from a seconds/nanoseconds value*@secs: seconds to set*@nsecs: nanoseconds to set* Return: The ktime_t representation of the value.)
2239 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循环
2241  返回:base
调用者
名称描述
hrtimer_update_base