Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\time\posix-timers.c Create Date:2022-07-28 10:46:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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().

Proto:static struct k_itimer *timer_wait_running(struct k_itimer *timer, unsigned long *flags)

Type:struct k_itimer

Parameter:

TypeParameterName
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  If Not WARN_ON_ONCE(!timer_wait_running) Then 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  Return lock_timer(timer_id, flags)
Caller
NameDescribe
do_timer_settime
SYSCALL_DEFINE1Delete a POSIX.1b interval timer.