函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bpf_lru_list_pop_free_to_local

函数原型:static void bpf_lru_list_pop_free_to_local(struct bpf_lru *lru, struct bpf_lru_locallist *loc_l)

返回类型:void

参数:

类型参数名称
struct bpf_lru *lru
struct bpf_lru_locallist *loc_l
321  l等于lru_list
323  nfree等于0
325  raw_spin_lock( & lock)
327  Flush the nodes from the local pending list to the LRU list
329  1. Rotate the active list (if needed)* 2. Always rotate the inactive list
333  __bpf_lru_node_move_to_free(l, node, Local list helpers , BPF_LRU_LOCAL_LIST_T_FREE)
335  如果nfree先自加恒等于LOCAL_FREE_TARGET退出
339  如果nfree小于LOCAL_FREE_TARGETCalls __bpf_lru_list_shrink_inactive() to shrink some* ref-bit-cleared nodes and move them to the designated* free list
344  raw_spin_unlock( & lock)
调用者
名称描述
bpf_common_lru_pop_free