Lines Matching defs:name
119 * An optional map "*name" filter can be specified.
121 * e.g. filter by kernel-struct-ops-name, regex-name, glob-name, ...etc.
130 static int get_next_struct_ops_map(const char *name, int *res_fd,
162 (!name || !strcmp(name, info->name))) {
183 * Filter out by "name" (if specified).
186 static struct res do_search(const char *name, work_func func, void *data,
202 while ((err = get_next_struct_ops_map(name, &fd, info, info_len)) == 1) {
215 if (!wtr && name && !res.nr_errs && !res.nr_maps)
218 * for "name" here.
220 p_err("no struct_ops found for %s", name);
272 p_err("%s id %u is not a struct_ops map", info->name, info->id);
306 else if (!is_prefix(search_type, "name"))
319 jsonw_string_field(wtr, "name", info->name);
324 printf("%u: %-15s %-32s\n", info->id, info->name,
379 info->name, info->id);
449 get_kern_struct_ops_name(info), info->name,
455 get_kern_struct_ops_name(info), info->name,
479 const char *name)
484 err = pathname_concat(pinfile, sizeof(pinfile), pindir, name);
557 info.name,
569 if (linkdir && pin_link(link, linkdir, info.name)) {
571 link_info.id, info.name,
578 info.name, info.id, link_info.id);
615 " STRUCT_OPS_MAP := [ id STRUCT_OPS_MAP_ID | name STRUCT_OPS_MAP_NAME ]\n"