函数逻辑报告 |
Source Code:kernel\time\timer.c |
Create Date:2022-07-27 11:39:35 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static struct timer_base *lock_timer_base(struct timer_list *timer, unsigned long *flags)__acquires(timer->base->lock)
返回类型:struct timer_base
参数:
类型 | 参数 | 名称 |
---|---|---|
struct timer_list * | timer | |
unsigned long * | flags |
923 | 循环 |
934 | 如果非tf按位与TIMER_MIGRATING的值则 |
935 | base等于get_timer_base(tf) |
936 | raw_spin_lock_irqsave( & lock, * flags) |
939 | raw_spin_unlock_irqrestore( & lock, * flags) |
941 | cpu_relax() |
名称 | 描述 |
---|---|
__mod_timer | |
add_timer_on | add_timer_on - start a timer on a particular CPU*@timer: the timer to be added*@cpu: the CPU to start it on* This is not very scalable on SMP. Double adds are not possible. |
del_timer | del_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_sync | 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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |