函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lpm_trie_node_alloc

函数原型:static struct lpm_trie_node *lpm_trie_node_alloc(const struct lpm_trie *trie, const void *value)

返回类型:struct lpm_trie_node

参数:

类型参数名称
const struct lpm_trie *trie
const void *value
280  size等于sizeof(structlpm_trie_node)加data_size
282  如果valuesize加等于value_size
285  node等于kmalloc_node(size, DOC: Useful GFP flag combinations* Useful GFP flag combinations* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~* Useful GFP flag combinations that are commonly used. It is recommended* that subsystems start with one of these combinations and then set/clear | DOC: Action modifiers* Action modifiers* ~~~~~~~~~~~~~~~~* %__GFP_NOWARN suppresses allocation failure reports.* %__GFP_COMP address compound page metadata.* %__GFP_ZERO returns a zeroed page on success., numa_node)
287  如果非node则返回:NULL
290  flags等于0
292  如果value内存复制(data + data_size, value, value_size)
296  返回:node
调用者
名称描述
trie_update_elemCalled from syscall or from eBPF program