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:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:CLOCKs: The POSIX standard calls for a couple of clocks and allows us* to implement others

Proto:static struct k_itimer *__lock_timer(timer_t timer_id, unsigned long *flags)

Type:struct k_itimer

Parameter:

TypeParameterName
timer_ttimer_id
unsigned long *flags
596  If timer_id > INT_MAX Then Return NULL
599  _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
600  timr = posix_timer_by_id(timer_id)
601  If timr Then
602  spin_lock_irqsave( & it_lock, * flags)
603  If it_signal == signal Then
605  Return timr
607  spin_unlock_irqrestore( & it_lock, * flags)
609  _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()
611  Return NULL