函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static inline int extract_bit(const u8 *data, size_t index)

返回类型:int

参数:

类型参数名称
const u8 *data
size_tindex
153  返回:非非data[index / 8]按位与1左移7减index取模8位的值
调用者
名称描述
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