Searched refs:inner_map (Results 1 – 4 of 4) sorted by relevance
| /Linux-v4.19/kernel/bpf/ |
| D | map_in_map.c | 14 struct bpf_map *inner_map, *inner_map_meta; in bpf_map_meta_alloc() local 18 inner_map = __bpf_map_get(f); in bpf_map_meta_alloc() 19 if (IS_ERR(inner_map)) in bpf_map_meta_alloc() 20 return inner_map; in bpf_map_meta_alloc() 26 if (inner_map->map_type == BPF_MAP_TYPE_PROG_ARRAY || in bpf_map_meta_alloc() 27 inner_map->map_type == BPF_MAP_TYPE_CGROUP_STORAGE) { in bpf_map_meta_alloc() 33 if (inner_map->inner_map_meta) { in bpf_map_meta_alloc() 44 inner_map_meta->map_type = inner_map->map_type; in bpf_map_meta_alloc() 45 inner_map_meta->key_size = inner_map->key_size; in bpf_map_meta_alloc() 46 inner_map_meta->value_size = inner_map->value_size; in bpf_map_meta_alloc() [all …]
|
| D | arraymap.c | 699 struct bpf_map **inner_map = array_map_lookup_elem(map, key); in array_of_map_lookup_elem() local 701 if (!inner_map) in array_of_map_lookup_elem() 704 return READ_ONCE(*inner_map); in array_of_map_lookup_elem()
|
| D | hashtab.c | 1396 struct bpf_map **inner_map = htab_map_lookup_elem(map, key); in htab_of_map_lookup_elem() local 1398 if (!inner_map) in htab_of_map_lookup_elem() 1401 return READ_ONCE(*inner_map); in htab_of_map_lookup_elem()
|
| /Linux-v4.19/samples/bpf/ |
| D | test_map_in_map_kern.c | 73 static __always_inline int do_reg_lookup(void *inner_map, u32 port) in do_reg_lookup() argument 77 result = bpf_map_lookup_elem(inner_map, &port); in do_reg_lookup() 81 static __always_inline int do_inline_array_lookup(void *inner_map, u32 port) in do_inline_array_lookup() argument 85 if (inner_map != &port_a) in do_inline_array_lookup() 92 static __always_inline int do_inline_hash_lookup(void *inner_map, u32 port) in do_inline_hash_lookup() argument 96 if (inner_map != &port_h) in do_inline_hash_lookup() 110 void *outer_map, *inner_map; in trace_sys_connect() local 151 inner_map = bpf_map_lookup_elem(outer_map, &port_key); in trace_sys_connect() 152 if (!inner_map) { in trace_sys_connect() 158 ret = do_reg_lookup(inner_map, port_key); in trace_sys_connect() [all …]
|