Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 48) sorted by relevance

12

/systemd-251/src/libsystemd/sd-hwdb/
Dsd-hwdb.c100 struct trie_child_entry_f *child; in node_lookup_f() local
104child = bsearch(&search, (const char *)node + le64toh(hwdb->head->node_size), node->children_count, in node_lookup_f()
106 if (child) in node_lookup_f()
107 return trie_node_from_off(hwdb, child->child_off); in node_lookup_f()
194 const struct trie_child_entry_f *child = trie_node_child(hwdb, node, i); in trie_fnmatch_f() local
196 linebuf_add_char(buf, child->c); in trie_fnmatch_f()
197 … err = trie_fnmatch_f(hwdb, trie_node_from_off(hwdb, child->child_off), 0, buf, search); in trie_fnmatch_f()
224 const struct trie_node_f *child; in trie_search_f() local
239 child = node_lookup_f(hwdb, node, '*'); in trie_search_f()
240 if (child) { in trie_search_f()
[all …]
/systemd-251/src/basic/
Dstrbuf.c54 strbuf_node_cleanup(node->children[i].child); in strbuf_node_cleanup()
88 .child = node_child, in bubbleinsert()
111 struct strbuf_child_entry *child; in strbuf_add_string() local
143child = typesafe_bsearch(&search, node->children, node->children_count, strbuf_children_cmp); in strbuf_add_string()
144 if (!child) in strbuf_add_string()
146 node = child->child; in strbuf_add_string()
171child = reallocarray(node->children, node->children_count + 1, sizeof(struct strbuf_child_entry)); in strbuf_add_string()
172 if (!child) in strbuf_add_string()
177 node->children = child; in strbuf_add_string()
Dchase-symlinks.c211 _cleanup_close_ int child = -1; in chase_symlinks() local
275 child = openat(fd, first, O_CLOEXEC|O_NOFOLLOW|O_PATH); in chase_symlinks()
276 if (child < 0) { in chase_symlinks()
294 if (fstat(child, &st) < 0) in chase_symlinks()
298 return log_unsafe_transition(fd, child, path, flags); in chase_symlinks()
303 fd_is_fs_type(child, AUTOFS_SUPER_MAGIC) > 0) in chase_symlinks()
304 return log_autofs_mount_point(child, path, flags); in chase_symlinks()
335 … return log_unsafe_transition(child, fd, path, flags); in chase_symlinks()
366 fd = TAKE_FD(child); in chase_symlinks()
Dterminal-util.c1135 pid_t child; in openpt_allocate_in_namespace() local
1148 pidnsfd, mntnsfd, -1, usernsfd, rootfd, &child); in openpt_allocate_in_namespace()
1166 r = wait_for_terminate_and_check("(sd-openptns)", child, 0); in openpt_allocate_in_namespace()
1188 pid_t child; in open_terminal_in_namespace() local
1199 pidnsfd, mntnsfd, -1, usernsfd, rootfd, &child); in open_terminal_in_namespace()
1219 r = wait_for_terminate_and_check("(sd-terminalns)", child, 0); in open_terminal_in_namespace()
/systemd-251/src/shared/
Dhwdb-util.c62 struct trie_node *child; member
79 struct trie_child_entry *child; in node_add_child() local
82child = reallocarray(node->children, node->children_count + 1, sizeof(struct trie_child_entry)); in node_add_child()
83 if (!child) in node_add_child()
86 node->children = child; in node_add_child()
89 node->children[node->children_count].child = node_child; in node_add_child()
98 struct trie_child_entry *child; in node_lookup() local
102 child = typesafe_bsearch(&search, node->children, node->children_count, trie_children_cmp); in node_lookup()
103 if (child) in node_lookup()
104 return child->child; in node_lookup()
[all …]
Dbtrfs-util.h115 int btrfs_qgroup_assign(int fd, uint64_t child, uint64_t parent);
116 int btrfs_qgroup_unassign(int fd, uint64_t child, uint64_t parent);
/systemd-251/src/import/
Dimport-common.c160 _cleanup_free_ char *child = NULL, *t = NULL, *joined = NULL; in import_mangle_os_tree() local
195 child = strdup(dent->d_name); in import_mangle_os_tree()
196 if (!child) in import_mangle_os_tree()
209 if (fstatat(dirfd(d), child, &st, AT_SYMLINK_NOFOLLOW) < 0) in import_mangle_os_tree()
210 return log_debug_errno(errno, "Failed to stat file '%s/%s': %m", path, child); in import_mangle_os_tree()
213 …no(r, "Child '%s' of directory '%s' is not a directory, leaving things as they are.", child, path); in import_mangle_os_tree()
217 joined = path_join(path, child); in import_mangle_os_tree()
241 cd = xopendirat(dirfd(d), child, O_NOFOLLOW); in import_mangle_os_tree()
249 r = tempfn_random(child, NULL, &t); in import_mangle_os_tree()
252 r = rename_noreplace(dirfd(d), child, dirfd(d), t); in import_mangle_os_tree()
/systemd-251/src/libsystemd/sd-bus/
Dbus-match.c63 assert(!node->child); in bus_match_node_free()
67 if (node->parent->child) { in bus_match_node_free()
74 assert(node->parent->child == node); in bus_match_node_free()
75 node->parent->child = node->next; in bus_match_node_free()
108 if (node->child) in bus_match_node_maybe_free()
270 return bus_match_run(bus, node->child, m); in bus_match_run()
279 assert(node->child); in bus_match_run()
280 return bus_match_run(bus, node->child, m); in bus_match_run()
407 for (struct bus_match_node *c = node->child; c; c = c->next) { in bus_match_run()
441 for (c = where->child; c && c->type != t; c = c->next) in bus_match_add_compare_value()
[all …]
Dbus-container.c19 pid_t child; in bus_container_connect_socket() local
56 pidnsfd, mntnsfd, -1, usernsfd, rootfd, &child); in bus_container_connect_socket()
75 r = wait_for_terminate_and_check("(sd-buscntrns)", child, 0); in bus_container_connect_socket()
/systemd-251/src/login/
Dlogind-brightness.c36 pid_t child; member
106 assert(si->si_pid == w->child); in on_brightness_writer_exit()
107 w->child = 0; in on_brightness_writer_exit()
137 assert(w->child == 0); in brightness_writer_fork()
140 …sd-bright)", FORK_DEATHSIG|FORK_NULL_STDIO|FORK_CLOSE_ALL_FDS|FORK_LOG|FORK_REOPEN_LOG, &w->child); in brightness_writer_fork()
158 …r = sd_event_add_child(w->manager->event, &w->child_event_source, w->child, WEXITED, on_brightness… in brightness_writer_fork()
160 … return log_error_errno(r, "Failed to watch brightness writer child " PID_FMT ": %m", w->child); in brightness_writer_fork()
/systemd-251/src/libsystemd/sd-event/
Dsd-event.c36 s->child.pidfd >= 0 && in EVENT_SOURCE_WATCH_PIDFD()
37 s->child.options == WEXITED; in EVENT_SOURCE_WATCH_PIDFD()
485 if (!s->child.registered) in source_child_pidfd_unregister()
489 if (epoll_ctl(s->event->epoll_fd, EPOLL_CTL_DEL, s->child.pidfd, NULL) < 0) in source_child_pidfd_unregister()
493 s->child.registered = false; in source_child_pidfd_unregister()
508 s->child.registered ? EPOLL_CTL_MOD : EPOLL_CTL_ADD, in source_child_pidfd_register()
509 s->child.pidfd, &ev) < 0) in source_child_pidfd_register()
513 s->child.registered = true; in source_child_pidfd_register()
858 s->child.process_owned = false; in source_disconnect()
860 if (s->child.pid > 0) { in source_disconnect()
[all …]
/systemd-251/tools/
Dupdate-dbus-docs.py227 for child in parent:
228 if (child.tag == etree.Comment
229 and 'Autogenerated' in child.text):
230 parent.remove(child)
231 if (child.tag == etree.Comment
232 and 'not documented' in child.text):
233 parent.remove(child)
234 if (child.tag == "variablelist"
235 and child.attrib.get("generated",False) == "True"):
236 parent.remove(child)
/systemd-251/src/portable/
Dportabled-operation.c71 int operation_new(Manager *manager, pid_t child, sd_bus_message *message, int errno_fd, Operation *… in operation_new() argument
76 assert(child > 1); in operation_new()
86 r = sd_event_add_child(manager->event, &o->event_source, child, WEXITED, operation_done, o); in operation_new()
92 o->pid = child; in operation_new()
100 log_debug("Started new operation " PID_FMT ".", child); in operation_new()
/systemd-251/src/machine/
Doperation.c72 int operation_new(Manager *manager, Machine *machine, pid_t child, sd_bus_message *message, int err… in operation_new() argument
77 assert(child > 1); in operation_new()
87 r = sd_event_add_child(manager->event, &o->event_source, child, WEXITED, operation_done, o); in operation_new()
93 o->pid = child; in operation_new()
106 log_debug("Started new operation " PID_FMT ".", child); in operation_new()
Dimage-dbus.c37 pid_t child; in bus_image_method_remove() local
69 r = safe_fork("(sd-imgrm)", FORK_RESET_SIGNALS, &child); in bus_image_method_remove()
86 r = operation_new(m, NULL, child, message, errno_pipe_fd[0], NULL); in bus_image_method_remove()
88 (void) sigkill_wait(child); in bus_image_method_remove()
155 pid_t child; in bus_image_method_clone() local
195 r = safe_fork("(sd-imgclone)", FORK_RESET_SIGNALS, &child); in bus_image_method_clone()
212 r = operation_new(m, NULL, child, message, errno_pipe_fd[0], NULL); in bus_image_method_clone()
214 (void) sigkill_wait(child); in bus_image_method_clone()
Dmachine-dbus.c243 pid_t child; in bus_machine_method_get_addresses() local
265 -1, -1, netns_fd, -1, -1, &child); in bus_machine_method_get_addresses()
348 r = wait_for_terminate_and_check("(sd-addrns)", child, 0); in bus_machine_method_get_addresses()
390 pid_t child; in bus_machine_method_get_os_release() local
401 &child); in bus_machine_method_get_os_release()
432 r = wait_for_terminate_and_check("(sd-osrelns)", child, 0); in bus_machine_method_get_os_release()
913 pid_t child; in bus_machine_method_copy() local
988 r = safe_fork("(sd-copy)", FORK_RESET_SIGNALS, &child); in bus_machine_method_copy()
1043 r = operation_new(m->manager, m, child, message, errno_pipe_fd[0], NULL); in bus_machine_method_copy()
1045 (void) sigkill_wait(child); in bus_machine_method_copy()
[all …]
/systemd-251/rules.d/
D71-seat.rules.in54 # given that the child devices might not exist yet at the time this
56 # the child if we notice that the parent wasn't recognized yet.
65 # Match child, look for parent's ID_AVOID_LOOP
70 # Match child, retrigger parent
D78-sound-card.rules13 # child device nodes that belong to it. udev relays those to applications,
14 # however only maintains the order between father and child, but not between
26 # only be relayed after all child devices have finished processing properly.
/systemd-251/src/libsystemd/sd-device/
Dsd-device.c864 static int device_new_from_child(sd_device **ret, sd_device *child) { in device_new_from_child() argument
870 assert(child); in device_new_from_child()
872 r = sd_device_get_syspath(child, &syspath); in device_new_from_child()
894 _public_ int sd_device_get_parent(sd_device *child, sd_device **ret) { in sd_device_get_parent() argument
897 assert_return(child, -EINVAL); in sd_device_get_parent()
899 if (!child->parent_set) { in sd_device_get_parent()
900 r = device_new_from_child(&child->parent, child); in sd_device_get_parent()
904 child->parent_set = true; in sd_device_get_parent()
907 if (!child->parent) in sd_device_get_parent()
911 *ret = child->parent; in sd_device_get_parent()
[all …]
Ddevice-enumerator.c914 _cleanup_free_ char *child = NULL; in parent_crawl_children() local
923 child = path_join(path, de->d_name); in parent_crawl_children()
924 if (!child) in parent_crawl_children()
927 k = parent_add_child(enumerator, child); in parent_crawl_children()
932 parent_crawl_children(enumerator, child, maxdepth - 1); in parent_crawl_children()
934 … log_debug("sd-device-enumerator: Max depth reached, %s: ignoring devices", child); in parent_crawl_children()
/systemd-251/src/cgtop/
Dcgtop.c471 Group *child = NULL; in refresh_one() local
485 r = refresh_one(controller, p, a, b, iteration, depth + 1, &child); in refresh_one()
491 child && in refresh_one()
492 child->n_tasks_valid && in refresh_one()
498 ours->n_tasks += child->n_tasks; in refresh_one()
500 ours->n_tasks = child->n_tasks; in refresh_one()
/systemd-251/src/activate/
Dactivate.c213 static int fork_and_exec_process(const char *child, char **argv, int fd) { in fork_and_exec_process() argument
229 exec_process(child, argv, fd, 1); in fork_and_exec_process()
233 log_info("Spawned %s (%s) as PID " PID_FMT ".", child, joined, child_pid); in fork_and_exec_process()
/systemd-251/src/libudev/
Dlibudev-device.c374 static struct udev_device *device_new_from_parent(struct udev_device *child) { in device_new_from_parent() argument
378 assert_return_errno(child, NULL, EINVAL); in device_new_from_parent()
380 r = sd_device_get_parent(child->device, &parent); in device_new_from_parent()
384 return udev_device_new(child->udev, parent); in device_new_from_parent()
/systemd-251/test/fuzz/fuzz-udev-rules/
D78-sound-card.rules13 # child device nodes that belong to it. udev relays those to applications,
14 # however only maintains the order between father and child, but not between
26 # only be relayed after all child devices have finished processing properly.
/systemd-251/src/udev/
Dudevadm-info.c155 sd_device *child, *parent; in print_device_chain() local
172 for (child = device; sd_device_get_parent(child, &parent) >= 0; child = parent) { in print_device_chain()

12