函数逻辑报告 |
Source Code:kernel\time\timer.c |
Create Date:2022-07-27 11:39:42 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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.
函数原型:void add_timer_on(struct timer_list *timer, int cpu)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct timer_list * | timer | |
| int | cpu |
| 1154 | new_base等于get_timer_cpu_base(flags, cpu) |
| 1163 | flags或等于TIMER_MIGRATING |
| 1165 | raw_spin_unlock( & lock) |
| 1167 | raw_spin_lock( & lock) |
| 1168 | WRITE_ONCE(flags, (flags & ~TIMER_BASEMASK) | cpu) |
| 1171 | forward_timer_base(base) |
| 1173 | debug_timer_activate(timer) |
| 1174 | internal_add_timer(base, timer) |
| 1175 | raw_spin_unlock_irqrestore( & lock, flags) |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |