函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:纳秒转换到64位timespec时间

函数原型:struct timespec64 ns_to_timespec64(const s64 nsec)

返回类型:struct timespec64

参数:

类型参数名称
const s64nsec
551  struct timespec64 ts = {0, 0}
554  如果此条件成立可能性大(为编译器优化)(nsec > 0)则
555  seconds 等于div_u64_rem(nsec, NSEC_PER_SEC, & rem)
556  nanoseconds 等于rem
557  否则如果nsec小于0则
563  seconds 等于负div_u64_rem( - nsec - 1, NSEC_PER_SEC, & rem)减1
564  nanoseconds 等于NSEC_PER_SECrem减1
567  返回:ts
调用者
名称描述
ns_to_old_timeval32
read_persistent_wall_and_boot_offsetad_persistent_wall_and_boot_offset - Read persistent clock, and also offset* from the boot.* Weak dummy function for arches that do not yet support it.* The default function calculates offset based on the current value of* local_clock()
timekeeping_resumemekeeping_resume - Resumes the generic timekeeping subsystem.
posix_cpu_clock_get
posix_cpu_timer_setGuts of sys_timer_settime for CPU timers.* This is called with the timer locked and interrupts disabled.* If we return TIMER_RETRY, it's necessary to release the timer's lock* and try again. (This happens when the timer is in the middle of firing.)
posix_cpu_timer_get
posix_cpu_nsleep_restart
get_cpu_itimer
set_cpu_itimer
ns_to_kernel_old_timeval