函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:posix_cpu_timer_get

函数原型:static void posix_cpu_timer_get(struct k_itimer *timer, struct itimerspec64 *itp)

返回类型:void

参数:

类型参数名称
struct k_itimer *timer
struct itimerspec64 *itp
704  clkid等于CPUCLOCK_WHICH(it_clock)
705  ctmr等于cpu
706  expires等于cpu_timer_getexpires(ctmr)
707  p等于task
709  如果WARN_ON_ONCE(!p)则返回
715  it_interval等于Map the ktime_t to timespec conversion to ns_to_timespec function (it_interval)
717  如果非expires则返回
723  如果CPUCLOCK_PERTHREAD(it_clock)则
724  now等于Sample a per-thread clock for the given task. clkid is validated.
725  否则
734  sighand等于lock_task_sighand(p, & flags)
742  返回
743  否则
749  如果now小于expires
750  it_value等于纳秒转换到64位timespec时间
751  否则
756  nanoseconds 等于1
757  seconds 等于0