Function report |
Source Code:kernel\bpf\lpm_trie.c |
Create Date:2022-07-28 13:13:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Called from syscall or from eBPF program
Proto:static int trie_delete_elem(struct bpf_map *map, void *_key)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_map * | map | |
void * | _key |
439 | matchlen = 0 |
440 | ret = 0 |
442 | If up to 32 for AF_INET, 128 for AF_INET6 > max_prefixlen Then Return -EINVAL |
445 | raw_spin_lock_irqsave( & lock, irq_flags) |
455 | parent = NULL |
460 | If prefixlen != matchlen || prefixlen == up to 32 for AF_INET, 128 for AF_INET6 Then Break |
470 | If Not node || prefixlen != up to 32 for AF_INET, 128 for AF_INET6 || prefixlen != matchlen || flags & Intermediate node Then |
477 | n_entries-- |
484 | flags |= Intermediate node |
485 | Go to out |
495 | If parent && flags & Intermediate node && Not child[0] && Not child[1] Then |
505 | Go to out |
520 | out : |
521 | raw_spin_unlock_irqrestore( & lock, irq_flags) |
523 | Return ret |
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 |