Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\lpm_trie.c Create Date:2022-07-28 13:13:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lpm_trie_node_alloc

Proto:static struct lpm_trie_node *lpm_trie_node_alloc(const struct lpm_trie *trie, const void *value)

Type:struct lpm_trie_node

Parameter:

TypeParameterName
const struct lpm_trie *trie
const void *value
280  size = sizeof(structlpm_trie_node) + data_size
282  If value Then size += 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  If Not node Then Return NULL
290  flags = 0
292  If value Then No 3D Now!(data + data_size, value, value_size)
296  Return node
Caller
NameDescribe
trie_update_elemCalled from syscall or from eBPF program