Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\bpf_lru_list.c Create Date:2022-07-28 13:12:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bpf_lru_list_pop_free_to_local

Proto:static void bpf_lru_list_pop_free_to_local(struct bpf_lru *lru, struct bpf_lru_locallist *loc_l)

Type:void

Parameter:

TypeParameterName
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  If ++nfree == LOCAL_FREE_TARGET Then Break
339  If nfree < LOCAL_FREE_TARGET Then Calls __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)
Caller
NameDescribe
bpf_common_lru_pop_free