/systemd/src/udev/ |
H A D | udev-builtin-path_id.c | 80 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...] |
H A D | udev-builtin-net_id.c | 289 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...] |
/systemd/src/test/ |
H A D | test-cgroup-mask.c | 29 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 D | libudev-device-internal.h | 42 struct udev_device *parent; member in struct:udev_device
|
H A D | libudev-device.c | 407 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...] |
H A D | libudev-enumerate.c | 302 * @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);
|
/systemd/src/backlight/ |
H A D | backlight.c | 34 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/journal/ |
H A D | journald-rate-limit.c | 56 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...] |
H A D | journal-internal.h | 47 Match *parent; member in struct:Match
|
/systemd/src/bootchart/ |
H A D | store.c | 231 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...] |
H A D | bootchart.h | 70 struct ps_struct *parent; /* ppid ref */ member in struct:ps_struct
|
H A D | svg.c | 883 /* go back for parent siblings */ 885 if (ps->parent && ps->parent->next) 886 return ps->parent->next; 888 ps = ps->parent; 1046 } else if (ps->parent){ 1047 /* hook children to our parent coords instead */ 1048 ps->pos_x = ps->parent->pos_x; 1049 ps->pos_y = ps->parent->pos_y; 1052 if ((!ps->next) && (ps->parent)) [all...] |
/systemd/src/core/ |
H A D | slice.c | 55 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.");
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-match.h | 53 struct bus_match_node *parent, *next, *prev, *child; member in struct:bus_match_node
|
H A D | bus-match.c | 79 assert(node->parent); 84 if (node->parent->child) { 85 /* We are apparently linked into the parent's child 91 assert(node->parent->child == node); 92 node->parent->child = node->next; 100 /* We might be in the parent's hash table, so clean 103 if (node->parent->type == BUS_MATCH_MESSAGE_TYPE) 104 hashmap_remove(node->parent->compare.children, UINT_TO_PTR(node->value.u8)); 105 else if (BUS_MATCH_CAN_HASH(node->parent->type) && node->value.str) 106 hashmap_remove(node->parent [all...] |
H A D | bus-objects.c | 98 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...] |
H A D | bus-internal.h | 66 struct node *parent; member in struct:node 120 struct node_vtable *parent; member in struct:vtable_member
|
/systemd/src/basic/ |
H A D | btrfs-util.h | 125 int btrfs_qgroup_assign(int fd, uint64_t child, uint64_t parent); 126 int btrfs_qgroup_unassign(int fd, uint64_t child, uint64_t parent);
|
H A D | mount-util.c | 133 /* 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...] |
H A D | btrfs-util.c | 76 _cleanup_free_ char *parent = NULL; local 81 parent = dirname_malloc(path); 82 if (!parent) 85 fd = open(parent, flags); 1099 /* The parent qgroupid shares the same id part with 1139 static int qgroup_assign_or_unassign(int fd, bool b, uint64_t child, uint64_t parent) { argument 1143 .dst = parent, 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 [all...] |
/systemd/src/libsystemd/sd-device/ |
H A D | device-internal.h | 29 sd_device *parent; member in struct:sd_device 30 bool parent_set; /* no need to try to reload parent */
|
H A D | sd-device.c | 72 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...] |
H A D | device-enumerator.c | 246 _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);
|
/systemd/src/gpt-auto-generator/ |
H A D | gpt-auto-generator.c | 563 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/systemd/ |
H A D | sd-device.h | 92 int sd_device_enumerator_add_match_parent(sd_device_enumerator *enumerator, sd_device *parent);
|