函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\time64.h Create Date:2022-07-27 06:38:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static __always_inline void timespec64_add_ns(struct timespec64 *a, u64 ns)

返回类型:void

参数:

类型参数名称
struct timespec64 *a
u64ns
156  seconds 加等于__iter_div_u64_rem( nanoseconds + ns, NSEC_PER_SEC, & ns)
157  nanoseconds 等于ns
调用者
名称描述
ktime_get_real_ts64ktime_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).
ktime_get_ts64ktime_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
ktime_get_raw_ts64ktime_get_raw_ts64 - Returns the raw monotonic time in a timespec*@ts: pointer to the timespec64 to be set* Returns the raw monotonic time (completely un-modified by ntp)