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

Name:bpf_common_lru_populate

Proto:static void bpf_common_lru_populate(struct bpf_lru *lru, void *buf, u32 node_offset, u32 elem_size, u32 nr_elems)

Type:void

Parameter:

TypeParameterName
struct bpf_lru *lru
void *buf
u32node_offset
u32elem_size
u32nr_elems
562  l = lru_list
565  When i < nr_elems cycle
568  node = buf + node_offset
569  type = BPF_LRU_LIST_T_FREE
570  ref = 0
571  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
572  buf += elem_size
Caller
NameDescribe
bpf_lru_populate