函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:On PREEMPT_RT this prevent priority inversion against softirq kthread in* case it gets preempted while executing a timer callback. See comments in* hrtimer_cancel_wait_running. For PREEMPT_RT=n this just results in a* cpu_relax().

函数原型:static struct k_itimer *timer_wait_running(struct k_itimer *timer, unsigned long *flags)

返回类型:struct k_itimer

参数:

类型参数名称
struct k_itimer *timer
unsigned long *flags
822  kc等于READ_ONCE(kclock)
823  timer_id等于READ_ONCE(it_id)
826  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
827  unlock_timer(timer, * flags)
829  如果非WARN_ON_ONCE(!timer_wait_running)则timer_wait_running(timer)
832  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
834  返回:lock_timer(timer_id, flags)
调用者
名称描述
do_timer_settime
SYSCALL_DEFINE1Delete a POSIX.1b interval timer.