函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Update the ktime_t based scalar nsec members of the timekeeper

函数原型:static inline void tk_update_ktime_data(struct timekeeper *tk)

返回类型:void

参数:

类型参数名称
struct timekeeper *tk
642  seconds等于xtime_sec seconds
643  nsec等于 nanoseconds
644  base等于ns_to_ktime(seconds * NSEC_PER_SEC + nsec)
651  nsec加等于xtime_nsec右移shift
652  如果nsec大于等于NSEC_PER_SECseconds自加
654  ktime_sec等于seconds
657  base等于ns_to_ktime(raw_sec * NSEC_PER_SEC)
调用者
名称描述
timekeeping_updatemust hold timekeeper_lock