Lines Matching refs:nsi
171 static int build_id_cache__add_file(const char *filename, struct nsinfo *nsi) in build_id_cache__add_file() argument
178 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__add_file()
187 err = build_id_cache__add_s(sbuild_id, filename, nsi, in build_id_cache__add_file()
194 static int build_id_cache__remove_file(const char *filename, struct nsinfo *nsi) in build_id_cache__remove_file() argument
202 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__remove_file()
218 static int build_id_cache__purge_path(const char *pathname, struct nsinfo *nsi) in build_id_cache__purge_path() argument
224 err = build_id_cache__list_build_ids(pathname, nsi, &list); in build_id_cache__purge_path()
298 static int build_id_cache__update_file(const char *filename, struct nsinfo *nsi) in build_id_cache__update_file() argument
306 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__update_file()
320 err = build_id_cache__add_s(sbuild_id, filename, nsi, false, in build_id_cache__update_file()
371 struct nsinfo *nsi = NULL; in cmd_buildid_cache() local
416 nsi = nsinfo__new(ns_id); in cmd_buildid_cache()
441 if (build_id_cache__add_file(pos->s, nsi)) { in cmd_buildid_cache()
459 if (build_id_cache__remove_file(pos->s, nsi)) { in cmd_buildid_cache()
477 if (build_id_cache__purge_path(pos->s, nsi)) { in cmd_buildid_cache()
505 if (build_id_cache__update_file(pos->s, nsi)) { in cmd_buildid_cache()
524 nsinfo__zput(nsi); in cmd_buildid_cache()