Lines Matching refs:child
864 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()
1037 _public_ int sd_device_get_parent_with_subsystem_devtype(sd_device *child, const char *subsystem, c… in sd_device_get_parent_with_subsystem_devtype() argument
1041 assert_return(child, -EINVAL); in sd_device_get_parent_with_subsystem_devtype()
1044 r = sd_device_get_parent(child, &parent); in sd_device_get_parent_with_subsystem_devtype()