Function report |
Source Code:kernel\bpf\devmap.c |
Create Date:2022-07-28 13:22:06 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:dev_map_hash_get_next_key
Proto:static int dev_map_hash_get_next_key(struct bpf_map *map, void *key, void *next_key)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_map * | map | |
void * | key | |
void * | next_key |
311 | i = 0 |
313 | If Not key Then Go to find_first |
318 | dev = __dev_map_hash_lookup_elem(map, idx) |
319 | If Not dev Then Go to find_first |
322 | next_dev = hlist_entry_safe(Dependency order vs. p above. (hlist_next_rcu( & index_hlist)), structbpf_dtab_netdev, index_hlist) |
325 | If next_dev Then |
327 | Return 0 |
331 | i++ |
333 | find_first : |
335 | head = dev_map_index_hash(dtab, i) |
337 | next_dev = hlist_entry_safe(Dependency order vs. p above. (urn the first or the next element in an RCU protected hlist(head)), structbpf_dtab_netdev, index_hlist) |
340 | If next_dev Then |
342 | Return 0 |
346 | Return -ENOENT |
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 |