Function report |
Source Code:block\bfq-wf2q.c |
Create Date:2022-07-28 18:00:04 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:q_first_active_entity - find the eligible entity with* the smallest finish time*@st: the service tree to select from
Proto:static struct bfq_entity *bfq_first_active_entity(struct bfq_service_tree *st, u64 vtime)
Type:struct bfq_entity
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bfq_service_tree * | st | |
| u64 | vtime |
| 1361 | struct bfq_entity * entry, * first = NULL |
| 1365 | entry = rb_entry(node, structbfq_entity, rb_node) |
| 1366 | left : |
| 1367 | If Not q_gt - compare two timestamps.*@a: first ts.*@b: second ts.* Return @a > @b, dealing with wrapping correctly. Then first = entry |
| 1370 | If rb_left Then |
| 1371 | entry = rb_entry(rb_left, structbfq_entity, rb_node) |
| 1378 | If first Then Break |
| 1383 | Return first |
| Name | Describe |
|---|---|
| __bfq_lookup_next_entity | __bfq_lookup_next_entity - return the first eligible entity in @st |
| 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 |