Function report |
Source Code:kernel\time\hrtimer.c |
Create Date:2022-07-28 10:40:46 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:queue_hrtimer - internal function to (re)start a timer* The timer is inserted in expiry order. Insertion into the* red black tree is O(log(n)). Must hold the base lock.* Returns 1 when the new timer is the leftmost timer in the tree.
Proto:static int enqueue_hrtimer(struct hrtimer *timer, struct hrtimer_clock_base *base, enum hrtimer_mode mode)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct hrtimer * | timer | |
| struct hrtimer_clock_base * | base | |
| enum hrtimer_mode | mode |
| 965 | debug_activate(timer, mode) |
| 967 | active_bases |= 1 << index |
| Name | Describe |
|---|---|
| __hrtimer_start_range_ns | |
| __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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |