Function report |
Source Code:kernel\bpf\bpf_lru_list.c |
Create Date:2022-07-28 13:12:27 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Rotate the inactive list. It starts from the next_inactive_rotation* 1. If the node has ref bit set, it will be moved to the head* of active list with the ref bit cleared.* 2. If the node does not have ref bit set, it will leave it
Proto:static void __bpf_lru_list_rotate_inactive(struct bpf_lru *lru, struct bpf_lru_list *l)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bpf_lru * | lru | |
| struct bpf_lru_list * | l |
| 169 | inactive = lists[BPF_LRU_LIST_T_INACTIVE] |
| 172 | i = 0 |
| 174 | If list_empty - tests whether a list is empty*@head: the list to test. Then Return |
| 190 | If pf_lru_node helpers Then Move nodes between or within active and inactive list (like* active to inactive, inactive to active or tail of active back to* the head of active). |
| 195 | i++ |
| Name | Describe |
|---|---|
| __bpf_lru_list_rotate | 1. Rotate the active list (if needed)* 2. Always rotate the inactive list |
| 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 |