函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\bpf_lru_list.c Create Date:2022-07-27 14:28:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__bpf_lru_node_move_to_free

函数原型:static void __bpf_lru_node_move_to_free(struct bpf_lru_list *l, struct bpf_lru_node *node, struct list_head *free_list, enum bpf_lru_list_type tgt_free_type)

返回类型:void

参数:

类型参数名称
struct bpf_lru_list *l
struct bpf_lru_node *node
struct list_head *free_list
enum bpf_lru_list_typetgt_free_type
66  如果WARN_ON_ONCE(IS_LOCAL_LIST_TYPE(type))则返回
72  如果list恒等于 The next inacitve list rotation starts from here The next inacitve list rotation starts from here 等于链表前项
75  bpf_lru_list_count_dec(l, type)
77  type等于tgt_free_type
78  链表项移动到头部
调用者
名称描述
__bpf_lru_list_shrink_inactiveShrink 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.
__bpf_lru_list_shrinkCalls __bpf_lru_list_shrink_inactive() to shrink some* ref-bit-cleared nodes and move them to the designated* free list
bpf_lru_list_pop_free_to_local