Home
last modified time | relevance | path

Searched refs:inner_map_meta (Results 1 – 4 of 4) sorted by relevance

/kernel/bpf/
Dmap_in_map.c12 struct bpf_map *inner_map, *inner_map_meta; in bpf_map_meta_alloc() local
22 if (inner_map->inner_map_meta) { in bpf_map_meta_alloc()
37 inner_map_meta_size = sizeof(*inner_map_meta); in bpf_map_meta_alloc()
42 inner_map_meta = kzalloc(inner_map_meta_size, GFP_USER); in bpf_map_meta_alloc()
43 if (!inner_map_meta) { in bpf_map_meta_alloc()
48 inner_map_meta->map_type = inner_map->map_type; in bpf_map_meta_alloc()
49 inner_map_meta->key_size = inner_map->key_size; in bpf_map_meta_alloc()
50 inner_map_meta->value_size = inner_map->value_size; in bpf_map_meta_alloc()
51 inner_map_meta->map_flags = inner_map->map_flags; in bpf_map_meta_alloc()
52 inner_map_meta->max_entries = inner_map->max_entries; in bpf_map_meta_alloc()
[all …]
Darraymap.c1271 struct bpf_map *map, *inner_map_meta; in array_of_map_alloc() local
1273 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); in array_of_map_alloc()
1274 if (IS_ERR(inner_map_meta)) in array_of_map_alloc()
1275 return inner_map_meta; in array_of_map_alloc()
1279 bpf_map_meta_free(inner_map_meta); in array_of_map_alloc()
1283 map->inner_map_meta = inner_map_meta; in array_of_map_alloc()
1293 bpf_map_meta_free(map->inner_map_meta); in array_of_map_free()
Dhashtab.c2475 struct bpf_map *map, *inner_map_meta; in htab_of_map_alloc() local
2477 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); in htab_of_map_alloc()
2478 if (IS_ERR(inner_map_meta)) in htab_of_map_alloc()
2479 return inner_map_meta; in htab_of_map_alloc()
2483 bpf_map_meta_free(inner_map_meta); in htab_of_map_alloc()
2487 map->inner_map_meta = inner_map_meta; in htab_of_map_alloc()
2522 bpf_map_meta_free(map->inner_map_meta); in htab_of_map_free()
Dverifier.c1411 if (map->inner_map_meta) { in mark_ptr_not_null_reg()
1413 reg->map_ptr = map->inner_map_meta; in mark_ptr_not_null_reg()
1417 if (map_value_has_timer(map->inner_map_meta)) in mark_ptr_not_null_reg()