Lines Matching defs:map
121 * An optional map "*name" filter can be specified.
126 * 1: A struct_ops map found. It is returned in "*res_fd" and "*info".
128 * 0: No struct_ops map is returned.
129 * All struct_ops map has been found.
143 p_err("can't get next map: %s", strerror(errno));
151 p_err("can't get map by id (%u): %s",
158 p_err("can't get map info: %s", strerror(errno));
184 /* Find all struct_ops map in the system.
186 * Then call "func(fd, info, data, wtr)" on each struct_ops map found.
256 p_err("can't get map by id (%lu): %s", id, strerror(errno));
268 p_err("can't get map info: %s", strerror(errno));
274 p_err("%s id %u is not a struct_ops map", info->name, info->id);
380 p_err("can't lookup struct_ops map %s id %u",
489 struct bpf_map *map;
513 bpf_object__for_each_map(map, obj) {
514 def = bpf_map__def(map);
518 link = bpf_map__attach_struct_ops(map);
521 bpf_map__name(map),
531 if (!bpf_obj_get_info_by_fd(bpf_map__fd(map), &info,
535 bpf_map__name(map),
542 bpf_map__name(map), strerror(errno));