函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ktime_get_real_ts64 - Returns the time of day in a timespec64.*@ts: pointer to the timespec to be set* Returns the time of day in a timespec64 (WARN if suspended).

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

返回类型:void

参数:

类型参数名称
struct timespec64 *ts
728  tk等于timekeeper
732  WARN_ON(lag for if timekeeping is suspended )
734  循环
735  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
737  seconds 等于xtime_sec
738  nsecs等于timekeeping_get_ns( & tkr_mono)
740 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循环
742  nanoseconds 等于0
743  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.
调用者
名称描述
COMPAT_SYSCALL_DEFINE2
do_adjtimexdo_adjtimex() - Accessor function to NTP __do_adjtimex function
sched_sync_hw_clock
sync_rtc_clock
sync_cmos_clock
posix_clock_realtime_getGet clock_realtime
do_clock_gettime
get_sampleget_sample - sample the CPU TSC and look for likely hardware latencies* Used to repeatedly capture the CPU TSC (or similar), looking for potential* hardware-induced latency. Called with interrupts disabled and with* hwlat_data.lock held.
SYSCALL_DEFINE2
getnstimeofday