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

Name:This trie implements a longest prefix match algorithm that can be used to* match IP addresses to a stored set of ranges.* Data stored in @data of struct bpf_lpm_key and struct lpm_trie_node is

Proto:static inline int extract_bit(const u8 *data, size_t index)

Type:int

Parameter:

TypeParameterName
const u8 *data
size_tindex
153  Return Not Not (data[index / 8] & 1 << 7 - index % 8 )
Caller
NameDescribe
trie_lookup_elemCalled from syscall or from eBPF program
trie_update_elemCalled from syscall or from eBPF program
trie_delete_elemCalled from syscall or from eBPF program
trie_get_next_key