函数逻辑报告 |
Source Code:kernel\time\hrtimer.c |
Create Date:2022-07-27 11:40:37 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__remove_hrtimer - internal function to remove a timer* Caller must hold the base lock.* High resolution timer mode reprograms the clock event device when the* timer is the one which expires next. The caller can disable this by setting* reprogram to zero
函数原型:static void __remove_hrtimer(struct hrtimer *timer, struct hrtimer_clock_base *base, u8 newstate, int reprogram)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct hrtimer * | timer | |
struct hrtimer_clock_base * | base | |
u8 | newstate | |
int | reprogram |
993 | WRITE_ONCE(state, newstate) |
994 | 如果非state按位与HRTIMER_STATE_ENQUEUED的值则返回 |
997 | 如果非从时钟队列移除定时器则active_bases与等于1左移index位的值的反 |
1008 | 如果reprogram且timer恒等于next_timer则Reprogram the event source with checking both queues for the* next event* Called with interrupts disabled and base->lock held |
名称 | 描述 |
---|---|
remove_hrtimer | move hrtimer, called with base lock held |
__run_hrtimer | The write_seqcount_barrier()s in __run_hrtimer() split the thing into 3* distinct sections:* - queued: the timer is queued* - callback: the timer is being ran* - post: the timer is inactive or (re)queued* On the read side we ensure we observe timer->state |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |