Lines Matching defs:parent
407 struct udev_device *parent;
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 exist.
453 udev_device->parent = device_new_from_parent(udev_device);
456 /* TODO: errno will differ here in case parent == NULL */
457 return udev_device->parent;
466 * Find the next parent device, with a matching subsystem and devtype
479 * Returns: a new udev device, or #NULL if no matching parent exists.
483 sd_device *parent;
488 /* this relies on the fact that finding the subdevice of a parent or the
489 parent of a subdevice commute */
492 r = sd_device_get_parent_with_subsystem_devtype(udev_device->device, subsystem, devtype, &parent);
501 if (udev_device->device == parent)
553 udev_device_unref(udev_device->parent);