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:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:pf_lru_node helpers

Proto:static bool bpf_lru_node_is_ref(const struct bpf_lru_node *node)

Type:bool

Parameter:

TypeParameterName
const struct bpf_lru_node *node
44  Return ref
Caller
NameDescribe
__bpf_lru_list_rotate_activeRotate 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
__bpf_lru_list_rotate_inactiveRotate the inactive list. It starts from the next_inactive_rotation* 1. If the node has ref bit set, it will be moved to the head* of active list with the ref bit cleared.* 2. If the node does not have ref bit set, it will leave it
__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.
__local_list_flushFlush the nodes from the local pending list to the LRU list
__local_list_pop_pending