Searched refs:PID_TO_PTR (Results 1 - 13 of 13) sorted by relevance

/systemd/src/remount-fs/
H A Dremount-fs.c116 k = hashmap_put(pids, PID_TO_PTR(pid), s);
138 s = hashmap_remove(pids, PID_TO_PTR(si.si_pid));
/systemd/src/core/
H A Dkillall.c128 (void) set_remove(pids, PID_TO_PTR(pid));
199 r = set_put(pids, PID_TO_PTR(pid));
H A Dunit.c2053 r = hashmap_put(u->manager->watch_pids1, PID_TO_PTR(pid), u);
2059 r = hashmap_put(u->manager->watch_pids2, PID_TO_PTR(pid), u);
2062 q = set_put(u->pids, PID_TO_PTR(pid));
2073 (void) hashmap_remove_value(u->manager->watch_pids1, PID_TO_PTR(pid), u);
2074 (void) hashmap_remove_value(u->manager->watch_pids2, PID_TO_PTR(pid), u);
2075 (void) set_remove(u->pids, PID_TO_PTR(pid));
3066 r = set_put(pid_set, PID_TO_PTR(main_pid));
3072 r = set_put(pid_set, PID_TO_PTR(control_pid));
H A Dmanager.c1605 u2 = hashmap_get(m->watch_pids1, PID_TO_PTR(ucred->pid));
1611 u3 = hashmap_get(m->watch_pids2, PID_TO_PTR(ucred->pid));
1679 u2 = hashmap_get(m->watch_pids1, PID_TO_PTR(si.si_pid));
1682 u3 = hashmap_get(m->watch_pids2, PID_TO_PTR(si.si_pid));
H A Dcgroup.c1444 u = hashmap_get(m->watch_pids1, PID_TO_PTR(pid));
1448 u = hashmap_get(m->watch_pids2, PID_TO_PTR(pid));
/systemd/src/basic/
H A Dprocess-util.h101 #define PID_TO_PTR(p) ((void*) ((uintptr_t) p)) macro
H A Dcgroup-util.c205 if (set_get(s, PID_TO_PTR(pid)) == PID_TO_PTR(pid))
223 r = set_put(s, PID_TO_PTR(pid));
336 if (set_get(s, PID_TO_PTR(pid)) == PID_TO_PTR(pid))
356 r = set_put(s, PID_TO_PTR(pid));
H A Dutil.c162 r = hashmap_put(pids, PID_TO_PTR(pid), path);
183 path = hashmap_remove(pids, PID_TO_PTR(pid));
/systemd/src/machine/
H A Dmachine.c107 (void) hashmap_remove_value(m->manager->machine_leaders, PID_TO_PTR(m->leader), m);
403 r = hashmap_put(m->manager->machine_leaders, PID_TO_PTR(m->leader), m);
H A Dmachined-dbus.c1519 mm = hashmap_get(m->machine_leaders, PID_TO_PTR(pid));
/systemd/src/udev/
H A Dudevd.c193 hashmap_remove(worker->manager->workers, PID_TO_PTR(worker->pid));
236 r = hashmap_put(manager->workers, PID_TO_PTR(pid), worker);
893 worker = hashmap_get(manager->workers, PID_TO_PTR(ucred->pid));
1197 worker = hashmap_get(manager->workers, PID_TO_PTR(pid));
/systemd/src/libsystemd/sd-event/
H A Dsd-event.c844 (void) hashmap_remove(s->event->child_sources, PID_TO_PTR(s->child.pid));
1219 if (hashmap_contains(e->child_sources, PID_TO_PTR(pid)))
1232 r = hashmap_put(e->child_sources, PID_TO_PTR(pid), s);
/systemd/src/nspawn/
H A Dnspawn.c3569 sd_event_add_signal(event, NULL, SIGINT, on_orderly_shutdown, PID_TO_PTR(pid));
3570 sd_event_add_signal(event, NULL, SIGTERM, on_orderly_shutdown, PID_TO_PTR(pid));

Completed in 4647 milliseconds