Lines Matching refs:create_attr
1108 struct bpf_create_map_attr create_attr = {}; in bpf_object__create_maps() local
1124 create_attr.name = map->name; in bpf_object__create_maps()
1125 create_attr.map_ifindex = map->map_ifindex; in bpf_object__create_maps()
1126 create_attr.map_type = def->type; in bpf_object__create_maps()
1127 create_attr.map_flags = def->map_flags; in bpf_object__create_maps()
1128 create_attr.key_size = def->key_size; in bpf_object__create_maps()
1129 create_attr.value_size = def->value_size; in bpf_object__create_maps()
1130 create_attr.max_entries = def->max_entries; in bpf_object__create_maps()
1131 create_attr.btf_fd = 0; in bpf_object__create_maps()
1132 create_attr.btf_key_type_id = 0; in bpf_object__create_maps()
1133 create_attr.btf_value_type_id = 0; in bpf_object__create_maps()
1136 create_attr.btf_fd = btf__fd(obj->btf); in bpf_object__create_maps()
1137 create_attr.btf_key_type_id = map->btf_key_type_id; in bpf_object__create_maps()
1138 create_attr.btf_value_type_id = map->btf_value_type_id; in bpf_object__create_maps()
1141 *pfd = bpf_create_map_xattr(&create_attr); in bpf_object__create_maps()
1142 if (*pfd < 0 && create_attr.btf_key_type_id) { in bpf_object__create_maps()
1146 create_attr.btf_fd = 0; in bpf_object__create_maps()
1147 create_attr.btf_key_type_id = 0; in bpf_object__create_maps()
1148 create_attr.btf_value_type_id = 0; in bpf_object__create_maps()
1151 *pfd = bpf_create_map_xattr(&create_attr); in bpf_object__create_maps()