函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ktime_get_ts64 - get the monotonic clock in timespec64 format*@ts: pointer to timespec variable* The function calculates the monotonic clock from the realtime* clock and the wall_to_monotonic offset and stores the result

函数原型:void ktime_get_ts64(struct timespec64 *ts)

返回类型:void

参数:

类型参数名称
struct timespec64 *ts
882  tk等于timekeeper
887  WARN_ON(lag for if timekeeping is suspended )
889  循环
890  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
891  seconds 等于xtime_sec
892  nsec等于timekeeping_get_ns( & tkr_mono)
893  tomono等于wall_to_monotonic
895 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循环
897  seconds 加等于 seconds
898  nanoseconds 等于0
899  mespec64_add_ns - Adds nanoseconds to a timespec64*@a: pointer to timespec64 to be incremented*@ns: unsigned nanoseconds value to be added* This must always be inlined because its used from the x86-64 vdso,* which cannot call other kernel functions.
调用者
名称描述
posix_ktime_get_tsGet monotonic time for posix timers
do_clock_gettime
udelay_test_show
poll_select_set_timeoutpoll_select_set_timeout - helper function to setup the timeout value*@to: pointer to timespec64 variable for the final timeout*@sec: seconds (from user space)*@nsec: nanoseconds (from user space)* Note, we do not use a timespec for the user space value
poll_select_finish
ep_set_mstimeout
ktime_get_ts
select_estimate_accuracy