Lines Matching refs:manager
46 Machine* machine_new(Manager *manager, MachineClass class, const char *name) {
49 assert(manager);
73 if (hashmap_put(manager->machines, m->name, m) < 0)
76 m->manager = manager;
95 LIST_REMOVE(gc_queue, m->manager->machine_gc_queue, m);
101 (void) hashmap_remove(m->manager->machines, m->name);
103 if (m->manager->host_machine == m)
104 m->manager->host_machine = NULL;
107 (void) hashmap_remove_value(m->manager->machine_leaders, PID_TO_PTR(m->leader), m);
373 r = manager_start_scope(m->manager, scope, m->leader, SPECIAL_MACHINE_SLICE, description, properties, error, &job);
387 hashmap_put(m->manager->machine_units, m->unit, m);
403 r = hashmap_put(m->manager->machine_leaders, PID_TO_PTR(m->leader), m);
443 r = manager_stop_unit(m->manager, m->unit, &error, &job);
502 if (m->scope_job && manager_job_is_active(m->manager, m->scope_job))
505 if (m->unit && manager_unit_is_active(m->manager, m->unit))
517 LIST_PREPEND(gc_queue, m->manager->machine_gc_queue, m);
555 return manager_kill_unit(m->manager, m->unit, signo, NULL);
634 (void) hashmap_remove(m->manager->machine_units, m->unit);