Searched defs:pids (Results 1 - 7 of 7) sorted by relevance

/systemd/src/remount-fs/
H A Dremount-fs.c43 _cleanup_hashmap_free_free_ Hashmap *pids = NULL; local
70 pids = hashmap_new(NULL);
71 if (!pids) {
116 k = hashmap_put(pids, PID_TO_PTR(pid), s);
125 while (!hashmap_isempty(pids)) {
138 s = hashmap_remove(pids, PID_TO_PTR(si.si_pid));
/systemd/src/core/
H A Dkillall.c94 static void wait_for_children(Set *pids, sigset_t *mask) { argument
99 if (set_isempty(pids))
128 (void) set_remove(pids, PID_TO_PTR(pid));
133 SET_FOREACH(p, pids, i) {
143 set_remove(pids, p);
146 if (set_isempty(pids))
168 static int killall(int sig, Set *pids, bool send_sighup) { argument
198 if (pids) {
199 r = set_put(pids, PID_TO_PTR(pid));
223 return set_size(pids);
228 _cleanup_set_free_ Set *pids = NULL; local
[all...]
H A Dunit.h160 Set *pids; member in struct:Unit
/systemd/src/shared/
H A Dcgroup-show.c50 static void show_pid_array(pid_t pids[], unsigned n_pids, const char *prefix, unsigned n_columns, bool extra, bool more, bool kernel_threads, OutputFlags flags) { argument
56 qsort(pids, n_pids, sizeof(pid_t), compare);
60 if (pids[i] == pids[j])
62 pids[++j] = pids[i];
65 pid_width = DECIMAL_STR_WIDTH(pids[j]);
78 get_process_cmdline(pids[i], n_columns, true, &t);
85 printf("%*"PID_PRI" %s\n", pid_width, pids[i], strna(t));
94 _cleanup_free_ pid_t *pids local
218 show_extra_pids(const char *controller, const char *path, const char *prefix, unsigned n_columns, const pid_t pids[], unsigned n_pids, OutputFlags flags) argument
[all...]
/systemd/src/basic/
H A Dutil.c82 _cleanup_hashmap_free_free_ Hashmap *pids = NULL; local
94 pids = hashmap_new(NULL);
95 if (!pids)
162 r = hashmap_put(pids, PID_TO_PTR(pid), path);
176 while (!hashmap_isempty(pids)) {
180 pid = PTR_TO_PID(hashmap_first_key(pids));
183 path = hashmap_remove(pids, PID_TO_PTR(pid));
H A Dcgroup-util.c241 * no new pids need to be killed. */
1909 int cg_attach_many_everywhere(CGroupMask supported, const char *path, Set* pids, cg_migrate_callback_t path_callback, void *userdata) { argument
1914 SET_FOREACH(pidp, pids, i) {
2036 /* Currently, we only support the memory and pids
2271 [CGROUP_CONTROLLER_PIDS] = "pids",
/systemd/src/libsystemd/sd-bus/
H A Dkdbus.h445 struct kdbus_pids pids; member in union:kdbus_item::__anon140

Completed in 73 milliseconds