Searched defs:parent (Results 1 - 25 of 27) sorted by relevance

12

/systemd/src/test/
H A Dtest-cgroup-mask.c29 Unit *son, *daughter, *parent, *root, *grandchild, *parent_deep; local
56 assert_se(manager_load_unit(m, "parent.slice", NULL, NULL, &parent) >= 0);
60 assert_se(manager_load_unit(m, "parent-deep.slice", NULL, NULL, &parent_deep) >= 0);
61 assert_se(parent->load_state == UNIT_LOADED);
66 assert_se(UNIT_DEREF(son->slice) == parent);
67 assert_se(UNIT_DEREF(daughter->slice) == parent);
68 assert_se(UNIT_DEREF(parent_deep->slice) == parent);
70 root = UNIT_DEREF(parent->slice);
77 assert_se(unit_get_own_mask(parent)
[all...]
/systemd/src/libudev/
H A Dlibudev-device-internal.h42 struct udev_device *parent; member in struct:udev_device
H A Dlibudev-enumerate.c302 * @parent: parent device where to start searching
304 * Return the devices on the subtree of one given device. The parent
312 _public_ int udev_enumerate_add_match_parent(struct udev_enumerate *udev_enumerate, struct udev_device *parent) { argument
315 if (!parent)
318 return sd_device_enumerator_add_match_parent(udev_enumerate->enumerator, parent->device);
H A Dlibudev-device.c407 struct udev_device *parent; local
412 parent = udev_device_new(child->udev);
413 if (!parent)
416 r = sd_device_get_parent(child->device, &parent->device);
419 udev_device_unref(parent);
423 /* the parent is unref'ed with the child, so take a ref from libudev as well */
424 sd_device_ref(parent->device);
426 return parent;
433 * Find the next parent device, and fill in information from the sys
445 * Returns: a new udev device, or #NULL, if it no parent exis
483 sd_device *parent; local
[all...]
/systemd/src/bootchart/
H A Dbootchart.h70 struct ps_struct *parent; /* ppid ref */ member in struct:ps_struct
H A Dstore.c231 struct ps_struct *parent; local
323 * each parent has a LL of children, and a LL of siblings
332 parent = ps_first;
333 while ((parent->next_ps && parent->pid != ps->ppid))
334 parent = parent->next_ps;
336 if (parent->pid != ps->ppid) {
339 parent = ps_first->next_ps;
342 ps->parent
[all...]
/systemd/src/core/
H A Dslice.c55 Unit *parent; local
73 r = manager_load_unit(UNIT(s)->manager, a, NULL, NULL, &parent);
77 unit_ref_set(&UNIT(s)->slice, parent);
101 _cleanup_free_ char *parent = NULL; local
114 r = slice_build_parent_slice(UNIT(s)->id, &parent);
116 return log_unit_error_errno(UNIT(s), r, "Failed to determine parent slice: %m");
118 if (parent ? !unit_has_name(UNIT_DEREF(UNIT(s)->slice), parent) : UNIT_ISSET(UNIT(s)->slice)) {
119 log_unit_error(UNIT(s), "Located outside of parent slice. Refusing.");
H A Dautomount.c133 _cleanup_free_ char *parent = NULL; local
137 parent = dirname_malloc(a->where);
138 if (!parent)
141 return unit_require_mounts_for(UNIT(a), parent);
H A Dmount.c241 _cleanup_free_ char *parent = NULL; local
254 parent = dirname_malloc(m->where);
255 if (!parent)
258 r = unit_require_mounts_for(UNIT(m), parent);
/systemd/src/backlight/
H A Dbacklight.c34 struct udev_device *parent; local
39 parent = udev_device_get_parent(device);
40 if (!parent)
43 subsystem = udev_device_get_subsystem(parent);
47 sysname = udev_device_get_sysname(parent);
70 value = udev_device_get_sysattr_value(parent, "class");
82 return parent;
86 return parent;
88 return find_pci_or_platform_parent(parent);
107 struct udev_device *parent; local
[all...]
/systemd/src/basic/
H A Dmount-util.c133 /* Neither parent nor child do name_to_handle_at()?
137 /* The parent can't do name_to_handle_at() but the
145 /* The parent can do name_to_handle_at() but the
152 * interested in and its parent are identical, we
179 * let's see if the parent directory has the same inode as we
198 /* A directory with same device and inode as its parent? Must
210 _cleanup_free_ char *canonical = NULL, *parent = NULL; local
219 * /bin -> /usr/bin/ and /usr is a mount point, then the parent that we
229 parent = dirname_malloc(t);
230 if (!parent)
[all...]
/systemd/src/journal/
H A Djournal-internal.h47 Match *parent; member in struct:Match
H A Djournald-rate-limit.c56 JournalRateLimit *parent; member in struct:JournalRateLimitGroup
98 if (g->parent) {
99 assert(g->parent->n_groups > 0);
101 if (g->parent->lru_tail == g)
102 g->parent->lru_tail = g->lru_prev;
104 LIST_REMOVE(lru, g->parent->lru, g);
105 LIST_REMOVE(bucket, g->parent->buckets[g->hash % BUCKETS_MAX], g);
107 g->parent->n_groups --;
129 if (g->pools[i].begin + g->parent->interval >= ts)
173 g->parent
[all...]
/systemd/src/libsystemd/sd-bus/
H A Dbus-match.h53 struct bus_match_node *parent, *next, *prev, *child; member in struct:bus_match_node
H A Dbus-internal.h66 struct node *parent; member in struct:node
120 struct node_vtable *parent; member in struct:vtable_member
H A Dbus-objects.c98 r = node_vtable_get_userdata(bus, path, p->parent, &u, error);
336 cap = CAPABILITY_SHIFT(c->parent->vtable[0].flags);
368 if (require_fallback && !c->parent->is_fallback)
375 r = node_vtable_get_userdata(bus, m->path, c->parent, &u, &error);
413 slot = container_of(c->parent, sd_bus_slot, node_vtable);
592 if (require_fallback && !c->parent->is_fallback)
601 slot = container_of(c->parent, sd_bus_slot, node_vtable);
1410 struct node *n, *parent; local
1433 parent = NULL;
1440 parent
[all...]
/systemd/src/libsystemd/sd-device/
H A Ddevice-internal.h29 sd_device *parent; member in struct:sd_device
30 bool parent_set; /* no need to try to reload parent */
H A Ddevice-enumerator.c246 _public_ int sd_device_enumerator_add_match_parent(sd_device_enumerator *enumerator, sd_device *parent) { argument
248 assert_return(parent, -EINVAL);
251 enumerator->match_parent = sd_device_ref(parent);
760 log_debug("sd-device-enumerate: could not open parent directory %s: %m", path);
H A Dsd-device.c72 sd_device_unref(device->parent);
736 (void)device_new_from_child(&child->parent, child);
739 if (!child->parent)
742 *ret = child->parent;
829 sd_device *parent = NULL; local
835 r = sd_device_get_parent(child, &parent);
840 (void)sd_device_get_subsystem(parent, &parent_subsystem);
845 (void)sd_device_get_devtype(parent, &parent_devtype);
849 r = sd_device_get_parent(parent, &parent);
[all...]
/systemd/src/network/
H A Dnetworkd-network.c305 struct udev_device *parent; local
314 parent = udev_device_get_parent(device);
315 if (parent)
316 parent_driver = udev_device_get_driver(parent);
/systemd/src/udev/
H A Dudev-builtin-net_id.c289 struct udev_device *parent; local
294 parent = udev_device_get_parent(dev);
296 /* there can only ever be one virtio bus per parent device, so we can
299 while (parent && streq_ptr("virtio", udev_device_get_subsystem(parent)))
300 parent = udev_device_get_parent(parent);
302 if (!parent)
305 /* check if our direct parent is a PCI device with no other bus in-between */
306 if (streq_ptr("pci", udev_device_get_subsystem(parent))) {
[all...]
H A Dudev-builtin-path_id.c80 struct udev_device *parent = dev; local
85 while (parent != NULL) {
88 subsystem = udev_device_get_subsystem(parent);
91 dev = parent;
92 parent = udev_device_get_parent(parent);
97 static struct udev_device *handle_scsi_fibre_channel(struct udev_device *parent, char **path) { argument
98 struct udev *udev = udev_device_get_udev(parent);
104 assert(parent);
107 targetdev = udev_device_get_parent_with_subsystem_devtype(parent, "scs
128 handle_scsi_sas_wide_port(struct udev_device *parent, char **path) argument
166 handle_scsi_sas(struct udev_device *parent, char **path) argument
262 handle_scsi_iscsi(struct udev_device *parent, char **path) argument
322 handle_scsi_ata(struct udev_device *parent, char **path) argument
355 handle_scsi_default(struct udev_device *parent, char **path) argument
442 handle_scsi_hyperv(struct udev_device *parent, char **path) argument
481 handle_scsi(struct udev_device *parent, char **path, bool *supported_parent) argument
535 handle_cciss(struct udev_device *parent, char **path) argument
562 handle_usb(struct udev_device *parent, char **path) argument
584 handle_bcma(struct udev_device *parent, char **path) argument
597 handle_ap(struct udev_device *parent, char **path) argument
617 struct udev_device *parent; local
[all...]
/systemd/src/gpt-auto-generator/
H A Dgpt-auto-generator.c563 struct udev_device *parent = NULL; local
588 parent = udev_device_get_parent(d);
589 if (!parent) {
595 devtype = udev_device_get_devtype(parent);
597 log_debug("%s: parent doesn't have a device type, ignoring.", name);
603 log_debug("%s: parent isn't a raw disk, ignoring.", name);
608 node = udev_device_get_devnode(parent);
610 log_debug("%s: parent device does not have device node, ignoring.", name);
616 pn = udev_device_get_devnum(parent);
670 r = udev_enumerate_add_match_parent(e, parent);
[all...]
/systemd/src/resolve/
H A Dresolved-dns-transaction.c638 * asking for parent SOA or similar RRs to make unsigned proofs. */
1800 * - For unsigned CNAME/DNAME/DS we get the parent SOA RR
1802 * - For SOA/NS/DS queries with no matching response RRs, and no NSEC/NSEC3, the parent's SOA RR
1843 /* If the signer is not a parent of our
1942 * zone apex, hence ask for the parent SOA for
1949 * the parent SOA is signed. */
1980 log_debug("Requesting parent SOA to validate transaction %" PRIu16 " (%s, unsigned CNAME/DNAME/DS RRset).", t->id, DNS_RESOURCE_KEY_NAME(rr->key));
2036 * the parent name instead. If this was a DS request,
2037 * then it's signed when the parent zone is signed,
2038 * hence ask the parent i
2172 const char *parent = NULL; local
[all...]
/systemd/src/shared/
H A Dinstall.c69 _cleanup_free_ char *parent = NULL; local
74 parent = dirname_malloc(path);
75 if (!parent)
79 if (path_equal(parent, *i))

Completed in 574 milliseconds

12