函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:1. Rotate the active list (if needed)* 2. Always rotate the inactive list

函数原型:static void __bpf_lru_list_rotate(struct bpf_lru *lru, struct bpf_lru_list *l)

返回类型:void

参数:

类型参数名称
struct bpf_lru *lru
struct bpf_lru_list *l
239  如果bpf_lru_list_inactive_low(l)则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
调用者
名称描述
bpf_lru_list_pop_free_to_local
bpf_percpu_lru_pop_free