| /systemd/src/basic/ |
| H A D | strbuf.h | 48 struct strbuf_node *child; member in struct:strbuf_child_entry
|
| H A D | strbuf.c | 73 strbuf_node_cleanup(node->children[i].child); 108 .child = node_child, 133 struct strbuf_child_entry *child; local 159 /* lookup child node */ 162 child = bsearch(&search, node->children, node->children_count, 165 if (!child) 167 node = child->child; 188 child = realloc(node->children, (node->children_count + 1) * sizeof(struct strbuf_child_entry)); 189 if (!child) { [all...] |
| H A D | terminal-util.c | 1040 pid_t child; local 1052 child = fork(); 1053 if (child < 0) 1056 if (child == 0) { 1080 r = wait_for_terminate(child, &si); 1093 pid_t child; local 1103 child = fork(); 1104 if (child < 0) 1107 if (child == 0) { 1128 r = wait_for_terminate(child, [all...] |
| H A D | btrfs-util.c | 1139 static int qgroup_assign_or_unassign(int fd, bool b, uint64_t child, uint64_t parent) { argument 1142 .src = child, 1175 int btrfs_qgroup_assign(int fd, uint64_t child, uint64_t parent) { argument 1176 return qgroup_assign_or_unassign(fd, true, child, parent); 1179 int btrfs_qgroup_unassign(int fd, uint64_t child, uint64_t parent) { argument 1180 return qgroup_assign_or_unassign(fd, false, child, parent); 1232 /* OK, the subvolume is not empty, let's look for child 1307 /* OK, the child subvolumes should all be gone now, let's try 1670 /* When btrfs clones the subvolumes, child 1899 * qgroup that then includes all its own child subvolume [all...] |
| /systemd/src/nspawn/ |
| H A D | nspawn-cgroup.c | 123 const char *child; local 150 child = strjoina(cgroup, "/payload"); 151 r = cg_create_and_attach(SYSTEMD_CGROUP_CONTROLLER, child, pid); 153 return log_error_errno(r, "Failed to create %s subcgroup: %m", child); 155 child = strjoina(cgroup, "/supervisor"); 156 r = cg_create_and_attach(SYSTEMD_CGROUP_CONTROLLER, child, 0); 158 return log_error_errno(r, "Failed to create %s subcgroup: %m", child);
|
| /systemd/src/libsystemd/sd-bus/ |
| H A D | bus-container.c | 33 pid_t child; local 64 child = fork(); 65 if (child < 0) 68 if (child == 0) { 113 r = wait_for_terminate(child, &si); 163 pid_t child; local 186 child = fork(); 187 if (child < 0) 190 if (child == 0) { 238 r = wait_for_terminate(child, [all...] |
| H A D | bus-match.h | 53 struct bus_match_node *parent, *next, *prev, *child; member in struct:bus_match_node 64 /* If this is set, then the child is NULL */
|
| /systemd/src/libudev/ |
| H A D | libudev-device.c | 405 static struct udev_device *device_new_from_parent(struct udev_device *child) argument 410 assert_return_errno(child, NULL, EINVAL); 412 parent = udev_device_new(child->udev); 416 r = sd_device_get_parent(child->device, &parent->device); 423 /* the parent is unref'ed with the child, so take a ref from libudev as well */ 436 * Returned device is not referenced. It is attached to the child 437 * device, and will be cleaned up when the child device is cleaned up. 473 * Returned device is not referenced. It is attached to the child 474 * device, and will be cleaned up when the child device is cleaned up.
|
| /systemd/src/activate/ |
| H A D | activate.c | 261 static int fork_and_exec_process(const char* child, char** argv, char **env, int fd) { argument 275 /* In the child */ 281 /* Make sure the child goes away when the parent dies */ 290 exec_process(child, argv, env, fd, 1); 294 log_info("Spawned %s (%s) as PID %d", child, joined, child_pid); 319 /* Wait for a dead child. */ 340 "Listen on sockets and launch child on connection.\n\n" 347 " -a --accept Spawn separate child for each connection\n"
|
| /systemd/src/libsystemd/sd-hwdb/ |
| H A D | sd-hwdb.c | 128 struct trie_child_entry_f *child; local 132 child = bsearch(&search, trie_node_children(hwdb, node), node->children_count, 134 if (child) 135 return trie_node_from_off(hwdb, child->child_off); 180 const struct trie_child_entry_f *child = &trie_node_children(hwdb, node)[i]; local 182 linebuf_add_char(buf, child->c); 183 err = trie_fnmatch_f(hwdb, trie_node_from_off(hwdb, child->child_off), 0, buf, search); 211 const struct trie_node_f *child; local 226 child = node_lookup_f(hwdb, node, '*'); 227 if (child) { [all...] |
| /systemd/src/hwdb/ |
| H A D | hwdb.c | 79 struct trie_node *child; member in struct:trie_child_entry 96 struct trie_child_entry *child; local 99 child = realloc(node->children, (node->children_count + 1) * sizeof(struct trie_child_entry)); 100 if (!child) 103 node->children = child; 106 node->children[node->children_count].child = node_child; 115 struct trie_child_entry *child; local 119 child = bsearch(&search, node->children, node->children_count, sizeof(struct trie_child_entry), trie_children_cmp); 120 if (child) 121 return child 204 struct trie_node *child; local [all...] |
| /systemd/src/libsystemd/sd-device/ |
| H A D | device-enumerator.c | 765 _cleanup_free_ char *child = NULL; local 774 child = strjoin(path, "/", dent->d_name, NULL); 775 if (!child) 778 k = parent_add_child(enumerator, child); 783 parent_crawl_children(enumerator, child, maxdepth - 1); 785 log_debug("device-enumerate: max depth reached, %s: ignoring devices", child);
|
| H A D | sd-device.c | 692 static int device_new_from_child(sd_device **ret, sd_device *child) { argument 698 assert(child); 700 r = sd_device_get_syspath(child, &syspath); 728 _public_ int sd_device_get_parent(sd_device *child, sd_device **ret) { argument 731 assert_return(child, -EINVAL); 733 if (!child->parent_set) { 734 child->parent_set = true; 736 (void)device_new_from_child(&child->parent, child); 739 if (!child 828 sd_device_get_parent_with_subsystem_devtype(sd_device *child, const char *subsystem, const char *devtype, sd_device **ret) argument [all...] |
| /systemd/src/machine/ |
| H A D | machine-dbus.c | 247 pid_t child; local 268 child = fork(); 269 if (child < 0) 272 if (child == 0) { 356 r = wait_for_terminate(child, &si); 358 return sd_bus_error_set_errnof(error, r, "Failed to wait for child: %m"); 399 pid_t child; local 408 child = fork(); 409 if (child < 0) 412 if (child 873 pid_t child; local 1133 pid_t child; local [all...] |
| /systemd/src/udev/ |
| H A D | udevadm-hwdb.c | 73 struct trie_node *child; member in struct:trie_child_entry 90 struct trie_child_entry *child; local 93 child = realloc(node->children, (node->children_count + 1) * sizeof(struct trie_child_entry)); 94 if (!child) 97 node->children = child; 100 node->children[node->children_count].child = node_child; 109 struct trie_child_entry *child; local 113 child = bsearch(&search, node->children, node->children_count, sizeof(struct trie_child_entry), trie_children_cmp); 114 if (child) 115 return child 185 struct trie_node *child; local [all...] |
| /systemd/src/cgtop/ |
| H A D | cgtop.c | 387 Group *child = NULL; local 401 r = refresh_one(controller, p, a, b, iteration, depth + 1, &child); 407 child && 408 child->n_tasks_valid && 414 ours->n_tasks += child->n_tasks; 416 ours->n_tasks = child->n_tasks; 457 * the child. Except when ordering by tasks and
|
| /systemd/src/journal-remote/ |
| H A D | journal-remote.c | 85 static int spawn_child(const char* child, char** argv) { argument 102 /* In the child */ 116 /* Make sure the child goes away when the parent dies */ 125 execvp(child, argv); 126 log_error_errno(errno, "Failed to exec child %s: %m", child);
|
| /systemd/src/shared/ |
| H A D | logs-show.c | 1142 pid_t pid, child; local 1165 child = fork(); 1166 if (child < 0) 1169 if (child == 0) { 1196 r = wait_for_terminate(child, &si);
|
| /systemd/src/libsystemd/sd-event/ |
| H A D | sd-event.c | 70 [SOURCE_CHILD] = "child", 141 } child; member in union:sd_event_source::__anon147 838 if (s->child.pid > 0) { 844 (void) hashmap_remove(s->event->child_sources, PID_TO_PTR(s->child.pid)); 1226 s->child.pid = pid; 1227 s->child.options = options; 1228 s->child.callback = callback; 1829 *pid = s->child.pid; 2109 P_ALL. This is because we only want to get child 2110 information of very specific child processe [all...] |