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

Name:1. Rotate the active list (if needed)* 2. Always rotate the inactive list

Proto:static void __bpf_lru_list_rotate(struct bpf_lru *lru, struct bpf_lru_list *l)

Type:void

Parameter:

TypeParameterName
struct bpf_lru *lru
struct bpf_lru_list *l
239  If bpf_lru_list_inactive_low(l) Then Rotate 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
242  Rotate 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
Caller
NameDescribe
bpf_lru_list_pop_free_to_local
bpf_percpu_lru_pop_free