函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:detach_if_pending

函数原型:static int detach_if_pending(struct timer_list *timer, struct timer_base *base, bool clear_pending)

返回类型:int

参数:

类型参数名称
struct timer_list *timer
struct timer_base *base
boolclear_pending
824  idx等于timer_get_idx(timer)
826  如果非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则返回:0
829  如果Check whether the node is the only node of the head without* accessing head:__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  返回:1
调用者
名称描述
__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.