Home
last modified time | relevance | path

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

/linux-6.6.21/kernel/bpf/
Dmap_in_map.c12 struct bpf_map *inner_map, *inner_map_meta; in bpf_map_meta_alloc() local
23 if (inner_map->inner_map_meta) { in bpf_map_meta_alloc()
33 inner_map_meta_size = sizeof(*inner_map_meta); in bpf_map_meta_alloc()
38 inner_map_meta = kzalloc(inner_map_meta_size, GFP_USER); in bpf_map_meta_alloc()
39 if (!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()
47 inner_map_meta->map_flags = inner_map->map_flags; in bpf_map_meta_alloc()
48 inner_map_meta->max_entries = inner_map->max_entries; in bpf_map_meta_alloc()
[all …]
Darraymap.c1296 struct bpf_map *map, *inner_map_meta; in array_of_map_alloc() local
1298 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); in array_of_map_alloc()
1299 if (IS_ERR(inner_map_meta)) in array_of_map_alloc()
1300 return inner_map_meta; in array_of_map_alloc()
1304 bpf_map_meta_free(inner_map_meta); in array_of_map_alloc()
1308 map->inner_map_meta = inner_map_meta; in array_of_map_alloc()
1318 bpf_map_meta_free(map->inner_map_meta); in array_of_map_free()
Dhashtab.c2535 struct bpf_map *map, *inner_map_meta; in htab_of_map_alloc() local
2537 inner_map_meta = bpf_map_meta_alloc(attr->inner_map_fd); in htab_of_map_alloc()
2538 if (IS_ERR(inner_map_meta)) in htab_of_map_alloc()
2539 return inner_map_meta; in htab_of_map_alloc()
2543 bpf_map_meta_free(inner_map_meta); in htab_of_map_alloc()
2547 map->inner_map_meta = inner_map_meta; in htab_of_map_alloc()
2582 bpf_map_meta_free(map->inner_map_meta); in htab_of_map_free()
Dverifier.c2178 if (map->inner_map_meta) { in mark_ptr_not_null_reg()
2180 reg->map_ptr = map->inner_map_meta; in mark_ptr_not_null_reg()
2184 if (btf_record_has_field(map->inner_map_meta->record, BPF_TIMER)) in mark_ptr_not_null_reg()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Djeq_infer_not_null_fail.c21 struct bpf_map *inner_map = map->inner_map_meta; in jeq_infer_not_null_ptr_to_btfid()
/linux-6.6.21/include/linux/
Dbpf.h252 struct bpf_map *inner_map_meta; member