Function report |
Source Code:kernel\bpf\bpf_lru_list.c |
Create Date:2022-07-28 13:12:29 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Shrink the inactive list. It starts from the tail of the* inactive list and only move the nodes without the ref bit* set to the designated free list.
Proto:static unsigned int __bpf_lru_list_shrink_inactive(struct bpf_lru *lru, struct bpf_lru_list *l, unsigned int tgt_nshrink, struct list_head *free_list, enum bpf_lru_list_type tgt_free_type)
Type:unsigned int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_lru * | lru | |
struct bpf_lru_list * | l | |
unsigned int | tgt_nshrink | |
struct list_head * | free_list | |
enum bpf_lru_list_type | tgt_free_type |
212 | inactive = lists[BPF_LRU_LIST_T_INACTIVE] |
214 | nshrinked = 0 |
215 | i = 0 |
218 | If pf_lru_node helpers Then |
220 | Else if del_from_htab(del_arg, node) Then |
223 | If ++nshrinked == tgt_nshrink Then Break |
231 | Return nshrinked |
Name | Describe |
---|---|
__bpf_lru_list_shrink | Calls __bpf_lru_list_shrink_inactive() to shrink some* ref-bit-cleared nodes and move them to the designated* free 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 |