Lines Matching refs:nsi
174 static int build_id_cache__add_file(const char *filename, struct nsinfo *nsi) in build_id_cache__add_file() argument
181 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__add_file()
190 err = build_id_cache__add_s(sbuild_id, filename, nsi, in build_id_cache__add_file()
197 static int build_id_cache__remove_file(const char *filename, struct nsinfo *nsi) in build_id_cache__remove_file() argument
205 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__remove_file()
221 static int build_id_cache__purge_path(const char *pathname, struct nsinfo *nsi) in build_id_cache__purge_path() argument
227 err = build_id_cache__list_build_ids(pathname, nsi, &list); in build_id_cache__purge_path()
300 static int build_id_cache__update_file(const char *filename, struct nsinfo *nsi) in build_id_cache__update_file() argument
308 nsinfo__mountns_enter(nsi, &nsc); in build_id_cache__update_file()
322 err = build_id_cache__add_s(sbuild_id, filename, nsi, false, in build_id_cache__update_file()
373 struct nsinfo *nsi = NULL; in cmd_buildid_cache() local
418 nsi = nsinfo__new(ns_id); in cmd_buildid_cache()
443 if (build_id_cache__add_file(pos->s, nsi)) { in cmd_buildid_cache()
461 if (build_id_cache__remove_file(pos->s, nsi)) { in cmd_buildid_cache()
479 if (build_id_cache__purge_path(pos->s, nsi)) { in cmd_buildid_cache()
507 if (build_id_cache__update_file(pos->s, nsi)) { in cmd_buildid_cache()
526 nsinfo__zput(nsi); in cmd_buildid_cache()