Lines Matching defs:machine
35 #include "machine-image.h"
68 Machine *machine;
73 while ((machine = hashmap_first(m->machines)))
74 machine_free(machine);
106 return log_error_errno(r, "Failed to get machine ID: %m");
145 /* Read in machine data stored on disk */
155 struct Machine *machine;
161 /* Ignore symlinks that map the unit name to the machine */
168 k = manager_add_machine(m, de->d_name, &machine);
170 r = log_error_errno(k, "Failed to add machine by file name %s: %m", de->d_name);
174 machine_add_to_gc_queue(machine);
176 k = machine_load(machine);
199 r = sd_bus_add_fallback_vtable(m->bus, NULL, "/org/freedesktop/machine1/machine", "org.freedesktop.machine1.Machine", machine_vtable, machine_object_find, m);
201 return log_error_errno(r, "Failed to add machine object vtable: %m");
203 r = sd_bus_add_node_enumerator(m->bus, NULL, "/org/freedesktop/machine1/machine", machine_node_enumerator, m);
205 return log_error_errno(r, "Failed to add machine enumerator: %m");
288 Machine *machine;
292 while ((machine = m->machine_gc_queue)) {
293 LIST_REMOVE(gc_queue, m->machine_gc_queue, machine);
294 machine->in_gc_queue = false;
297 if (!machine_check_gc(machine, drop_not_started) &&
298 machine_get_state(machine) != MACHINE_CLOSING)
299 machine_stop(machine);
304 if (!machine_check_gc(machine, drop_not_started)) {
305 machine_finalize(machine);
306 machine_free(machine);
312 Machine *machine;
330 HASHMAP_FOREACH(machine, m->machines, i)
331 machine_start(machine, NULL, NULL);