Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:detach_if_pending

Proto:static int detach_if_pending(struct timer_list *timer, struct timer_base *base, bool clear_pending)

Type:int

Parameter:

TypeParameterName
struct timer_list *timer
struct timer_base *base
boolclear_pending
824  idx = timer_get_idx(timer)
826  If Not mer_pending - is a timer pending?*@timer: the timer in question* timer_pending will tell whether a given timer is currently pending,* or not. Callers must ensure serialization wrt. other operations done* to this timer, eg Then Return 0
829  If Check whether the node is the only node of the head without* accessing head: Then __clear_bit - Clears a bit in memory*@nr: the bit to clear*@addr: the address to start counting from* Unlike clear_bit(), this function is non-atomic. If it is called on the same* region of memory concurrently, the effect may be that only one operation
832  detach_timer(timer, clear_pending)
833  Return 1
Caller
NameDescribe
__mod_timer
del_timerdel_timer - deactivate a timer.*@timer: the timer to be deactivated* del_timer() deactivates a timer - this works on both active and inactive* timers.* The function returns whether it has deactivated a pending timer or not.* (ie
try_to_del_timer_syncry_to_del_timer_sync - Try to deactivate a timer*@timer: timer to delete* This function tries to deactivate a timer. Upon successful (ret >= 0)* exit the timer is not queued and the handler is not running on any CPU.