函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Get the time remaining on a POSIX.1b interval timer. This function* is ALWAYS called with spin_lock_irq on the timer, thus it must not* mess with irq.* We have a couple of messes to clean up here. First there is the case

函数原型:void common_timer_get(struct k_itimer *timr, struct itimerspec64 *cur_setting)

返回类型:void

参数:

类型参数名称
struct k_itimer *timr
struct itimerspec64 *cur_setting
646  kc等于kclock
651  sig_none等于it_sigev_notify恒等于her notification: meaningless
652  iv等于it_interval
655  如果iv
656  it_interval等于Map the ktime_t to timespec conversion to ns_to_timespec function (iv)
657  否则如果非it_active
662  如果非sig_none则返回
670  clock_get(it_clock, & ts64)
671  now等于vert a timespec64 to ktime_t format:
677  如果ivit_requeue_pending按位与REQUEUE_PENDINGsig_none的值则it_overrun加等于timer_forward(timr, now)
680  remaining等于timer_remaining(timr, now)
682  如果remaining小于等于0则
687  如果非sig_none nanoseconds 等于1
689  否则
690  it_value等于Map the ktime_t to timespec conversion to ns_to_timespec function (remaining)
调用者
名称描述
common_timer_setSet a POSIX.1b interval timer.