函数逻辑报告 |
Source Code:lib\timerqueue.c |
Create Date:2022-07-27 07:10:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:添加定时器到时钟队列
函数原型:bool timerqueue_add(struct timerqueue_head *head, struct timerqueue_node *node)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct timerqueue_head * | head | |
struct timerqueue_node * | node |
32 | bool leftmost = true |
39 | ptr等于rb_entry(parent, structtimerqueue_node, node) |
42 | 否则 |
47 | rb_link_node( & node, parent, p) |
48 | rb_insert_color_cached( & node, & rb_root, leftmost) |
50 | 返回:leftmost |
名称 | 描述 |
---|---|
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. |
enqueue_hrtimer | 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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |