Lines Matching refs:create_attr

2135 	struct bpf_create_map_attr create_attr = {};  in bpf_object__create_maps()  local
2153 create_attr.name = map->name; in bpf_object__create_maps()
2154 create_attr.map_ifindex = map->map_ifindex; in bpf_object__create_maps()
2155 create_attr.map_type = def->type; in bpf_object__create_maps()
2156 create_attr.map_flags = def->map_flags; in bpf_object__create_maps()
2157 create_attr.key_size = def->key_size; in bpf_object__create_maps()
2158 create_attr.value_size = def->value_size; in bpf_object__create_maps()
2171 create_attr.max_entries = nr_cpus; in bpf_object__create_maps()
2173 create_attr.max_entries = def->max_entries; in bpf_object__create_maps()
2175 create_attr.btf_fd = 0; in bpf_object__create_maps()
2176 create_attr.btf_key_type_id = 0; in bpf_object__create_maps()
2177 create_attr.btf_value_type_id = 0; in bpf_object__create_maps()
2180 create_attr.inner_map_fd = map->inner_map_fd; in bpf_object__create_maps()
2183 create_attr.btf_fd = btf__fd(obj->btf); in bpf_object__create_maps()
2184 create_attr.btf_key_type_id = map->btf_key_type_id; in bpf_object__create_maps()
2185 create_attr.btf_value_type_id = map->btf_value_type_id; in bpf_object__create_maps()
2188 *pfd = bpf_create_map_xattr(&create_attr); in bpf_object__create_maps()
2189 if (*pfd < 0 && (create_attr.btf_key_type_id || in bpf_object__create_maps()
2190 create_attr.btf_value_type_id)) { in bpf_object__create_maps()
2195 create_attr.btf_fd = 0; in bpf_object__create_maps()
2196 create_attr.btf_key_type_id = 0; in bpf_object__create_maps()
2197 create_attr.btf_value_type_id = 0; in bpf_object__create_maps()
2200 *pfd = bpf_create_map_xattr(&create_attr); in bpf_object__create_maps()