Function report |
Source Code:lib\timerqueue.c |
Create Date:2022-07-28 06:13:15 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:merqueue_add - Adds timer to timerqueue.*@head: head of timerqueue*@node: timer node to be added* Adds the timer node to the timerqueue, sorted by the node's expires* value. Returns true if the newly added timer is the first expiring timer in* the queue.
Proto:bool timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct timerqueue_head * | head | |
| struct timerqueue_node * | node |
| 32 | bool leftmost = true |
| 39 | ptr = rb_entry(parent, structtimerqueue_node, node) |
| 42 | Else |
| 47 | rb_link_node( & node, parent, p) |
| 48 | rb_insert_color_cached( & node, & rb_root, leftmost) |
| 50 | Return leftmost |
| Name | Describe |
|---|---|
| alarmtimer_enqueue | alarmtimer_enqueue - Adds an alarm timer to an alarm_base timerqueue*@base: pointer to the base where the timer is being run*@alarm: pointer to alarm being enqueued.* Adds alarm to a alarm_base timerqueue* Must hold base->lock when calling. |
| 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 |