Searched refs:manager (Results 1 - 25 of 92) sorted by relevance

1234

/systemd/src/network/
H A Dnetworkd-manager-bus.c34 int manager_send_changed(Manager *manager, const char *property, ...) { argument
37 assert(manager);
39 if (!manager->bus)
45 manager->bus,
H A Dnetworkd-wait-online-link.c46 l->manager = m;
74 if (l->manager) {
75 hashmap_remove(l->manager->links, INT_TO_PTR(l->ifindex));
76 hashmap_remove(l->manager->links_by_name, l->ifname);
89 assert(l->manager);
107 hashmap_remove(l->manager->links_by_name, l->ifname);
111 r = hashmap_put(l->manager->links_by_name, l->ifname, l);
H A Dnetworkd-address-pool.h28 Manager *manager; member in struct:AddressPool
H A Dnetworkd-wait-online-link.h28 Manager *manager; member in struct:Link
H A Dnetworkd-address-pool.c43 p->manager = m;
80 if (p->manager)
81 LIST_REMOVE(address_pools, p->manager->address_pools, p);
98 HASHMAP_FOREACH(l, p->manager->links, i) {
122 LIST_FOREACH(networks, n, p->manager->networks) {
H A Dnetworkd-netdev.c99 assert(netdev->manager);
100 assert(netdev->manager->rtnl);
102 callback->callback(netdev->manager->rtnl, m, callback->link);
118 hashmap_remove(netdev->manager->netdevs, netdev->ifname);
167 int netdev_get(Manager *manager, const char *name, NetDev **ret) { argument
170 assert(manager);
174 netdev = hashmap_get(manager->netdevs, name);
199 assert(netdev->manager);
200 assert(netdev->manager->rtnl);
205 r = sd_rtnl_message_new_link(netdev->manager
572 netdev_load_one(Manager *manager, const char *filename) argument
690 netdev_load(Manager *manager) argument
[all...]
H A Dtest-network.c113 static int test_load_config(Manager *manager) { argument
119 * assert_se(network_should_reload(manager) == true);
122 r = manager_load_config(manager);
127 assert_se(manager_should_reload(manager) == false);
132 static void test_network_get(Manager *manager, struct udev_device *loopback) { argument
138 assert_se(network_get(manager, loopback, "lo", &mac, &network) == -ENOENT);
188 _cleanup_manager_free_ Manager *manager = NULL; local
197 assert_se(manager_new(&manager) >= 0);
199 r = test_load_config(manager);
210 test_network_get(manager, loopbac
[all...]
H A Dnetworkd-link-bus.c124 assert(link->manager);
126 if (!link->manager->bus)
136 link->manager->bus,
H A Dnetworkd-network.c39 static int network_load_one(Manager *manager, const char *filename) { argument
47 assert(manager);
67 network->manager = manager;
153 LIST_PREPEND(networks, manager->networks, network);
155 r = hashmap_ensure_allocated(&manager->networks_by_name, &string_hash_ops);
159 r = hashmap_put(manager->networks_by_name, network->name, network);
184 int network_load(Manager *manager) { argument
190 assert(manager);
192 while ((network = manager
285 network_get_by_name(Manager *manager, const char *name, Network **ret) argument
301 network_get(Manager *manager, struct udev_device *device, const char *ifname, const struct ether_addr *address, Network **ret) argument
357 network_apply(Manager *manager, Network *network, Link *link) argument
[all...]
/systemd/src/core/
H A Dload-dropin.h28 return unit_file_find_dropin_paths(u->manager->lookup_paths.unit_path,
29 u->manager->unit_path_cache,
H A Dload-dropin.c58 STRV_FOREACH(p, u->manager->lookup_paths.unit_path) {
59 unit_file_process_dir(u->manager->unit_path_cache, *p, t, ".wants", UNIT_WANTS,
61 unit_file_process_dir(u->manager->unit_path_cache, *p, t, ".requires", UNIT_REQUIRES,
H A Djob.c55 j->manager = unit->manager;
71 j->id = j->manager->current_job_id++;
88 LIST_REMOVE(run_queue, j->manager->run_queue, j);
91 LIST_REMOVE(dbus_queue, j->manager->dbus_job_queue, j);
115 j->unit->manager->n_running_jobs++;
118 assert(j->unit->manager->n_running_jobs > 0);
120 j->unit->manager->n_running_jobs--;
122 if (j->unit->manager->n_running_jobs <= 0)
123 j->unit->manager
[all...]
H A Ddbus-job.c71 r = bus_verify_manage_units_async(j->unit->manager, message, error);
142 LIST_REMOVE(dbus_queue, j->manager->dbus_job_queue, j);
146 r = bus_foreach_bus(j->manager, j->clients, j->sent_dbus_new_signal ? send_changed_signal : send_new_signal, j);
190 r = bus_foreach_bus(j->manager, j->clients, send_removed_signal, j);
/systemd/src/udev/
H A Dudevd.c83 pid_t pid; /* the process that originally allocated the manager object */
112 Manager *manager; member in struct:event
134 static void event_queue_cleanup(Manager *manager, enum event_state type);
144 Manager *manager; member in struct:worker
173 assert(event->manager);
175 if (udev_list_node_is_empty(&event->manager->events)) {
177 if (event->manager->pid == getpid()) {
191 assert(worker->manager);
193 hashmap_remove(worker->manager->workers, PID_TO_PTR(worker->pid));
200 static void manager_workers_free(Manager *manager) { argument
212 worker_new(struct worker **ret, Manager *manager, struct udev_monitor *worker_monitor, pid_t pid) argument
296 manager_free(Manager *manager) argument
332 worker_spawn(Manager *manager, struct event *event) argument
552 event_run(Manager *manager, struct event *event) argument
587 event_queue_insert(Manager *manager, struct udev_device *dev) argument
633 manager_kill_workers(Manager *manager) argument
649 is_devpath_busy(Manager *manager, struct event *event) argument
721 Manager *manager = userdata; local
732 manager_exit(Manager *manager) argument
767 manager_reload(Manager *manager) argument
784 event_queue_start(Manager *manager) argument
827 event_queue_cleanup(Manager *manager, enum event_state match_type) argument
841 Manager *manager = userdata; local
913 Manager *manager = userdata; local
935 Manager *manager = userdata; local
1124 Manager *manager = userdata; local
1164 Manager *manager = userdata; local
1174 Manager *manager = userdata; local
1184 Manager *manager = userdata; local
1240 Manager *manager = userdata; local
[all...]
/systemd/src/login/
H A Dlogind-button.c57 b->manager = m;
66 hashmap_remove(b->manager->buttons, b->name);
98 static void button_lid_switch_handle_action(Manager *manager, bool is_edge) { argument
101 assert(manager);
104 if (manager_is_docked_or_external_displays(manager))
105 handle_action = manager->handle_lid_switch_docked;
107 handle_action = manager->handle_lid_switch;
109 manager_handle_action(manager, INHIBIT_HANDLE_LID_SWITCH, handle_action, manager->lid_switch_ignore_inhibited, is_edge);
118 button_lid_switch_handle_action(b->manager, fals
[all...]
H A Dlogind-device.h29 Manager *manager; member in struct:Device
H A Dlogind-button.h27 Manager *manager; member in struct:Button
H A Dlogind.h171 int manager_send_changed(Manager *manager, const char *property, ...) _sentinel_;
173 int manager_start_slice(Manager *manager, const char *slice, const char *description, const char *after, const char *after2, uint64_t tasks_max, sd_bus_error *error, char **job);
174 int manager_start_scope(Manager *manager, const char *scope, pid_t pid, const char *slice, const char *description, const char *after, const char *after2, uint64_t tasks_max, sd_bus_error *error, char **job);
175 int manager_start_unit(Manager *manager, const char *unit, sd_bus_error *error, char **job);
176 int manager_stop_unit(Manager *manager, const char *unit, sd_bus_error *error, char **job);
177 int manager_abandon_scope(Manager *manager, const char *scope, sd_bus_error *error);
178 int manager_kill_unit(Manager *manager, const char *unit, KillWho who, int signo, sd_bus_error *error);
179 int manager_unit_is_active(Manager *manager, const char *unit);
180 int manager_job_is_active(Manager *manager, const char *path);
196 int manager_dispatch_delayed(Manager *manager, boo
[all...]
H A Dlogind-user.c65 u->manager = m;
110 LIST_REMOVE(gc_queue, u->manager->user_gc_queue, u);
116 hashmap_remove_value(u->manager->user_units, u->service, u);
119 hashmap_remove_value(u->manager->user_units, u->slice, u);
121 hashmap_remove_value(u->manager->users, UID_TO_PTR(u->uid), u);
319 s = hashmap_get(u->manager->sessions, display);
354 r = asprintf(&t, "mode=0700,smackfsroot=*,uid=" UID_FMT ",gid=" GID_FMT ",size=%zu", u->uid, u->gid, u->manager->runtime_dir_size);
356 r = asprintf(&t, "mode=0700,uid=" UID_FMT ",gid=" GID_FMT ",size=%zu", u->uid, u->gid, u->manager->runtime_dir_size);
405 u->manager,
410 u->manager
[all...]
/systemd/src/machine/
H A Dmachined.h74 int manager_start_scope(Manager *manager, const char *scope, pid_t pid, const char *slice, const char *description, sd_bus_message *more_properties, sd_bus_error *error, char **job);
75 int manager_stop_unit(Manager *manager, const char *unit, sd_bus_error *error, char **job);
76 int manager_kill_unit(Manager *manager, const char *unit, int signo, sd_bus_error *error);
77 int manager_unit_is_active(Manager *manager, const char *unit);
78 int manager_job_is_active(Manager *manager, const char *path);
H A Dmachine.c46 Machine* machine_new(Manager *manager, MachineClass class, const char *name) { argument
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
[all...]
/systemd/src/timesync/
H A Dtimesyncd-server.c60 if (a->name->manager && a->name->manager->current_server_address == a)
61 manager_set_server_address(a->name->manager, NULL);
102 n->manager = m;
123 if (n->manager) {
125 LIST_REMOVE(names, n->manager->system_servers, n);
127 LIST_REMOVE(names, n->manager->link_servers, n);
129 LIST_REMOVE(names, n->manager->fallback_servers, n);
133 if (n->manager->current_server_name == n)
134 manager_set_server_name(n->manager, NUL
[all...]
/systemd/src/resolve/
H A Dresolved-dns-search-domain.c56 d->manager = m;
114 assert(d->manager);
129 assert(d->manager->n_search_domains > 0);
130 LIST_REMOVE(domains, d->manager->search_domains, d);
131 d->manager->n_search_domains--;
164 LIST_REMOVE(domains, d->manager->search_domains, d);
165 LIST_INSERT_AFTER(domains, d->manager->search_domains, tail, d);
H A Dresolved-link.c56 l->manager = m;
87 if (l->manager)
88 hashmap_remove(l->manager->links, INT_TO_PTR(l->ifindex));
108 r = dns_scope_new(l->manager, &l->unicast_scope, l, DNS_PROTOCOL_DNS, AF_UNSPEC);
117 l->manager->llmnr_support != RESOLVE_SUPPORT_NO) {
119 r = dns_scope_new(l->manager, &l->llmnr_ipv4_scope, l, DNS_PROTOCOL_LLMNR, AF_INET);
128 l->manager->llmnr_support != RESOLVE_SUPPORT_NO &&
131 r = dns_scope_new(l->manager, &l->llmnr_ipv6_scope, l, DNS_PROTOCOL_LLMNR, AF_INET6);
140 l->manager->mdns_support != RESOLVE_SUPPORT_NO) {
142 r = dns_scope_new(l->manager,
[all...]
H A Dresolved-dns-server.c70 s->manager = m;
145 assert(s->manager);
163 assert(s->manager->n_dns_servers > 0);
164 LIST_REMOVE(servers, s->manager->dns_servers, s);
165 s->manager->n_dns_servers--;
169 assert(s->manager->n_dns_servers > 0);
170 LIST_REMOVE(servers, s->manager->fallback_dns_servers, s);
171 s->manager->n_dns_servers--;
180 if (s->manager->current_dns_server == s)
181 manager_set_dns_server(s->manager, NUL
[all...]

Completed in 3412 milliseconds

1234