Lines Matching refs:machine
93 Machine *machine; in method_get_machine() local
104 machine = hashmap_get(m->machines, name); in method_get_machine()
105 if (!machine) in method_get_machine()
108 p = machine_bus_path(machine); in method_get_machine()
144 Machine *machine = NULL; in method_get_machine_by_pid() local
172 r = manager_get_machine_by_pid(m, pid, &machine); in method_get_machine_by_pid()
175 if (!machine) in method_get_machine_by_pid()
178 p = machine_bus_path(machine); in method_get_machine_by_pid()
188 Machine *machine; in method_list_machines() local
202 HASHMAP_FOREACH(machine, m->machines) { in method_list_machines()
205 p = machine_bus_path(machine); in method_list_machines()
210 machine->name, in method_list_machines()
211 strempty(machine_class_to_string(machine->class)), in method_list_machines()
212 machine->service, in method_list_machines()
431 Machine *machine; in redirect_method_to_machine() local
443 machine = hashmap_get(m->machines, name); in redirect_method_to_machine()
444 if (!machine) in redirect_method_to_machine()
447 return method(message, machine, error); in redirect_method_to_machine()
895 Machine *machine; in method_map_from_machine_user() local
907 machine = hashmap_get(m->machines, name); in method_map_from_machine_user()
908 if (!machine) in method_map_from_machine_user()
911 if (machine->class != MACHINE_CONTAINER) in method_map_from_machine_user()
914 r = machine_translate_uid(machine, uid, &converted); in method_map_from_machine_user()
926 Machine *machine; in method_map_to_machine_user() local
938 r = manager_find_machine_for_uid(m, uid, &machine, &converted); in method_map_to_machine_user()
944 o = machine_bus_path(machine); in method_map_to_machine_user()
948 return sd_bus_reply_method_return(message, "sou", machine->name, o, (uint32_t) converted); in method_map_to_machine_user()
954 Machine *machine; in method_map_from_machine_group() local
966 machine = hashmap_get(m->machines, name); in method_map_from_machine_group()
967 if (!machine) in method_map_from_machine_group()
970 if (machine->class != MACHINE_CONTAINER) in method_map_from_machine_group()
973 r = machine_translate_gid(machine, gid, &converted); in method_map_from_machine_group()
985 Machine *machine; in method_map_to_machine_group() local
997 r = manager_find_machine_for_gid(m, gid, &machine, &converted); in method_map_to_machine_group()
1003 o = machine_bus_path(machine); in method_map_to_machine_group()
1007 return sd_bus_reply_method_return(message, "sou", machine->name, o, (uint32_t) converted); in method_map_to_machine_group()
1019 SD_BUS_RESULT("o", machine),
1029 SD_BUS_RESULT("o", machine),
1200 SD_BUS_ARGS("s", machine, "o", path),
1203 SD_BUS_ARGS("s", machine, "o", path),
1220 Machine *machine; in match_job_removed() local
1233 machine = hashmap_get(m->machine_units, unit); in match_job_removed()
1234 if (!machine) in match_job_removed()
1237 if (streq_ptr(path, machine->scope_job)) { in match_job_removed()
1238 machine->scope_job = mfree(machine->scope_job); in match_job_removed()
1240 if (machine->started) { in match_job_removed()
1242 machine_send_create_reply(machine, NULL); in match_job_removed()
1248 machine_send_create_reply(machine, &e); in match_job_removed()
1252 machine_save(machine); in match_job_removed()
1255 machine_add_to_gc_queue(machine); in match_job_removed()
1263 Machine *machine; in match_properties_changed() local
1281 machine = hashmap_get(m->machine_units, unit); in match_properties_changed()
1282 if (!machine) in match_properties_changed()
1285 machine_add_to_gc_queue(machine); in match_properties_changed()
1292 Machine *machine; in match_unit_removed() local
1304 machine = hashmap_get(m->machine_units, unit); in match_unit_removed()
1305 if (!machine) in match_unit_removed()
1308 machine_add_to_gc_queue(machine); in match_unit_removed()
1314 Machine *machine; in match_reloading() local
1331 HASHMAP_FOREACH(machine, m->machines) in match_reloading()
1332 machine_add_to_gc_queue(machine); in match_reloading()
1471 int manager_get_machine_by_pid(Manager *m, pid_t pid, Machine **machine) { in manager_get_machine_by_pid() argument
1477 assert(machine); in manager_get_machine_by_pid()
1490 *machine = mm; in manager_get_machine_by_pid()
1495 Machine *machine; in manager_add_machine() local
1500 machine = hashmap_get(m->machines, name); in manager_add_machine()
1501 if (!machine) { in manager_add_machine()
1502 machine = machine_new(m, _MACHINE_CLASS_INVALID, name); in manager_add_machine()
1503 if (!machine) in manager_add_machine()
1508 *_machine = machine; in manager_add_machine()