函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ry_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.

函数原型:int try_to_del_timer_sync(struct timer_list *timer)

返回类型:int

参数:

类型参数名称
struct timer_list *timer
1219  ret等于负1
1221  debug_assert_init(timer)
1223  base等于We are using hashed locking: Holding per_cpu(timer_bases[x]).lock means* that all timers which are tied to this base are locked, and the base itself* is locked too.* So __run_timers/migrate_timers can safely modify all timers which could
1225  如果running_timer不等于timerret等于detach_if_pending(timer, base, true)
1228  raw_spin_unlock_irqrestore( & lock, flags)
1230  返回:ret