Lines Matching refs:map_attr

148 	struct bpf_create_map_attr map_attr = {};  in bpf_create_map_node()  local
150 map_attr.name = name; in bpf_create_map_node()
151 map_attr.map_type = map_type; in bpf_create_map_node()
152 map_attr.map_flags = map_flags; in bpf_create_map_node()
153 map_attr.key_size = key_size; in bpf_create_map_node()
154 map_attr.value_size = value_size; in bpf_create_map_node()
155 map_attr.max_entries = max_entries; in bpf_create_map_node()
157 map_attr.numa_node = node; in bpf_create_map_node()
158 map_attr.map_flags |= BPF_F_NUMA_NODE; in bpf_create_map_node()
161 return bpf_create_map_xattr(&map_attr); in bpf_create_map_node()
167 struct bpf_create_map_attr map_attr = {}; in bpf_create_map() local
169 map_attr.map_type = map_type; in bpf_create_map()
170 map_attr.map_flags = map_flags; in bpf_create_map()
171 map_attr.key_size = key_size; in bpf_create_map()
172 map_attr.value_size = value_size; in bpf_create_map()
173 map_attr.max_entries = max_entries; in bpf_create_map()
175 return bpf_create_map_xattr(&map_attr); in bpf_create_map()
182 struct bpf_create_map_attr map_attr = {}; in bpf_create_map_name() local
184 map_attr.name = name; in bpf_create_map_name()
185 map_attr.map_type = map_type; in bpf_create_map_name()
186 map_attr.map_flags = map_flags; in bpf_create_map_name()
187 map_attr.key_size = key_size; in bpf_create_map_name()
188 map_attr.value_size = value_size; in bpf_create_map_name()
189 map_attr.max_entries = max_entries; in bpf_create_map_name()
191 return bpf_create_map_xattr(&map_attr); in bpf_create_map_name()