函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\hashtab.c Create Date:2022-07-27 14:24:52
Last Modify:2022-05-23 09:15:29 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:prealloc_lru_pop

函数原型:static struct htab_elem *prealloc_lru_pop(struct bpf_htab *htab, void *key, u32 hash)

返回类型:struct htab_elem

参数:

类型参数名称
struct bpf_htab *htab
void *key
u32hash
122  node等于bpf_lru_pop_free( & lru, hash)
125  如果node
126  l等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(node, structhtab_elem, lru_node)
127  内存复制(key, key, key_size)
128  返回:l
131  返回:NULL
调用者
名称描述
htab_lru_map_update_elem
__htab_lru_percpu_map_update_elem