函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:k_clock_read - atomic clocksource read() helper* This helper is necessary to use in the read paths because, while the* seqlock ensures we don't return a bad value while structures are updated,* it doesn't protect from potential crashes

函数原型:static inline u64 tk_clock_read(const struct tk_read_base *tkr)

返回类型:u64

参数:

类型参数名称
const struct tk_read_base *tkr
171  clock等于READ_ONCE(clock)
173  返回:read(clock)
调用者
名称描述
timekeeping_get_delta
tk_setup_internalsk_setup_internals - Set up internals to use clocksource clock
__ktime_get_fast_nsktime_get_mono_fast_ns - Fast NMI safe access to clock monotonic* This timestamp is not guaranteed to be monotonic across an update
__ktime_get_real_fast_nsSee comment for __ktime_get_fast_ns() vs. timestamp ordering
halt_fast_timekeeperhalt_fast_timekeeper - Prevent fast timekeeper from accessing clocksource.*@tk: Timekeeper to snapshot.* It generally is unsafe to access the clocksource after timekeeping has been* suspended, so take a snapshot of the readout base of @tk and use it as the
timekeeping_forward_nowmekeeping_forward_now - update clock to the current time* Forward the current clock to update its state since the last call to* update_wall_time(). This is useful before significant clock changes,
ktime_get_snapshotktime_get_snapshot - snapshots the realtime/monotonic raw clocks with counter*@systime_snapshot: pointer to struct receiving the system time snapshot
get_device_system_crosststampget_device_system_crosststamp - Synchronously capture system/device timestamp*@get_time_fn: Callback to get simultaneous device time and* system counter from the device driver*@ctx: Context passed to get_time_fn()*@history_begin: Historical reference
timekeeping_resumemekeeping_resume - Resumes the generic timekeeping subsystem.
timekeeping_advancemekeeping_advance - Updates the timekeeper to the current time and* current NTP tick length