Function report |
Source Code:kernel\bpf\devmap.c |
Create Date:2022-07-28 13:22:29 |
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_update_elem
Proto:static int __dev_map_update_elem(struct net *net, struct bpf_map *map, void *key, void *value, u64 map_flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct net * | net | |
struct bpf_map * | map | |
void * | key | |
void * | value | |
u64 | map_flags |
631 | If Value for the false possibility is greater at compile time(map_flags > update existing element ) Then Return -EINVAL |
633 | If Value for the false possibility is greater at compile time(i >= max_entries) Then Return -E2BIG |
635 | If Value for the false possibility is greater at compile time(map_flags == create new element if it didn't exist ) Then Return -EEXIST |
638 | If Not ifindex Then |
639 | dev = NULL |
640 | Else |
650 | old_dev = xchg( & DEVMAP type only [i], dev) |
654 | Return 0 |
Name | Describe |
---|---|
dev_map_update_elem |
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 |