Lines Matching refs:inner_map_meta
11 struct bpf_map *inner_map, *inner_map_meta; in bpf_map_meta_alloc() local
32 if (inner_map->inner_map_meta) { in bpf_map_meta_alloc()
42 inner_map_meta_size = sizeof(*inner_map_meta); in bpf_map_meta_alloc()
47 inner_map_meta = kzalloc(inner_map_meta_size, GFP_USER); in bpf_map_meta_alloc()
48 if (!inner_map_meta) { in bpf_map_meta_alloc()
53 inner_map_meta->map_type = inner_map->map_type; in bpf_map_meta_alloc()
54 inner_map_meta->key_size = inner_map->key_size; in bpf_map_meta_alloc()
55 inner_map_meta->value_size = inner_map->value_size; in bpf_map_meta_alloc()
56 inner_map_meta->map_flags = inner_map->map_flags; in bpf_map_meta_alloc()
57 inner_map_meta->max_entries = inner_map->max_entries; in bpf_map_meta_alloc()
58 inner_map_meta->spin_lock_off = inner_map->spin_lock_off; in bpf_map_meta_alloc()
61 inner_map_meta->ops = inner_map->ops; in bpf_map_meta_alloc()
63 inner_map_meta->unpriv_array = inner_map->unpriv_array; in bpf_map_meta_alloc()
64 container_of(inner_map_meta, struct bpf_array, map)->index_mask = in bpf_map_meta_alloc()
69 return inner_map_meta; in bpf_map_meta_alloc()
100 if (bpf_map_meta_equal(map->inner_map_meta, inner_map)) in bpf_map_fd_get_ptr()