Function report |
Source Code:kernel\bpf\lpm_trie.c |
Create Date:2022-07-28 13:13:08 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:static size_t longest_prefix_match(const struct lpm_trie *trie, const struct lpm_trie_node *node, const struct bpf_lpm_trie_key *key)
Type:size_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct lpm_trie * | trie | |
| const struct lpm_trie_node * | node | |
| const struct bpf_lpm_trie_key * | key |
| 168 | limit = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(prefixlen, up to 32 for AF_INET, 128 for AF_INET6 ) |
| 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 | Return prefixlen |
| Name | Describe |
|---|---|
| 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |