Searched defs:old_device (Results 1 - 2 of 2) sorted by relevance

/systemd/src/libudev/
H A Dlibudev-device-private.c220 struct udev_device *udev_device_shallow_clone(struct udev_device *old_device) { argument
224 assert(old_device);
226 device = udev_device_new(old_device->udev);
230 r = device_shallow_clone(old_device->device, &device->device);
/systemd/src/libsystemd/sd-device/
H A Ddevice-private.c795 int device_shallow_clone(sd_device *old_device, sd_device **new_device) { argument
799 assert(old_device);
806 r = device_set_syspath(ret, old_device->syspath, false);
810 r = device_set_subsystem(ret, old_device->subsystem);
814 ret->devnum = old_device->devnum;
822 int device_clone_with_db(sd_device *old_device, sd_device **new_device) { argument
826 assert(old_device);
829 r = device_shallow_clone(old_device, &ret);

Completed in 13 milliseconds