函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:纳秒转换到64位timespec时间
函数原型:struct timespec64 ns_to_timespec64(const s64 nsec)
返回类型:struct timespec64
参数:
类型 | 参数 | 名称 |
---|---|---|
const s64 | nsec |
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_SEC减rem减1 |
567 | 返回:ts |
名称 | 描述 |
---|---|
ns_to_old_timeval32 | |
read_persistent_wall_and_boot_offset | ad_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_resume | mekeeping_resume - Resumes the generic timekeeping subsystem. |
posix_cpu_clock_get | |
posix_cpu_timer_set | Guts 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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |