Function report |
Source Code:kernel\bpf\bpf_lru_list.c |
Create Date:2022-07-28 13:12:24 |
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 active list:* 1. Start from tail* 2. If the node has the ref bit set, it will be rotated* back to the head of active list with the ref bit cleared.* Give this node one more chance to survive in the active list.* 3
Proto:static void __bpf_lru_list_rotate_active(struct bpf_lru *lru, struct bpf_lru_list *l)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_lru * | lru | |
struct bpf_lru_list * | l |
142 | active = lists[BPF_LRU_LIST_T_ACTIVE] |
144 | i = 0 |
148 | 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). |
153 | If ++i == nr_scans || node == first_node Then Break |
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 |