函数逻辑报告 |
Source Code:kernel\bpf\lpm_trie.c |
Create Date:2022-07-27 14:29:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:longest_prefix_match() - determine the longest prefix*@trie: The trie to get internal sizes from*@node: The node to operate on*@key: The key to compare to @node* Determine the longest prefix of @node that matches the bits in @key.
函数原型:static size_t longest_prefix_match(const struct lpm_trie *trie, const struct lpm_trie_node *node, const struct bpf_lpm_trie_key *key)
返回类型:size_t
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct lpm_trie * | trie | |
const struct lpm_trie_node * | node | |
const struct bpf_lpm_trie_key * | key |
171 | BUILD_BUG_ON - break compile if a condition is true(offsetof(structlpm_trie_node, data) % sizeof(u32)) |
172 | BUILD_BUG_ON - break compile if a condition is true(offsetof(structbpf_lpm_trie_key, data) % sizeof(u32)) |
193 | diff等于be32_to_cpu( * (__be32 * ) & data[i] ^ * (__be32 * ) & Arbitrary size [i]) |
201 | i加等于4 |
205 | diff等于be16_to_cpu( * (__be16 * ) & data[i] ^ * (__be16 * ) & Arbitrary size [i]) |
213 | i加等于2 |
223 | 返回:prefixlen |
名称 | 描述 |
---|---|
trie_lookup_elem | Called from syscall or from eBPF program |
trie_update_elem | Called from syscall or from eBPF program |
trie_delete_elem | Called from syscall or from eBPF program |
trie_get_next_key |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |