Lines Matching refs:device
23 #include "device-private.h"
24 #include "libudev-device-internal.h"
34 device_old = udev_device_old->device;
36 r = device_tag_index(udev_device->device, device_old, add);
48 r = device_update_db(udev_device->device);
60 r = device_delete_db(udev_device->device);
72 r = sd_device_get_ifindex(udev_device->device, &ifindex);
85 r = sd_device_get_property_value(udev_device->device, "DEVPATH_OLD", &devpath_old);
100 r = device_get_devnode_mode(udev_device->device, &mode);
115 r = device_get_devnode_uid(udev_device->device, &uid);
130 r = device_get_devnode_gid(udev_device->device, &gid);
142 device_ensure_usec_initialized(udev_device->device,
143 udev_device_old ? udev_device_old->device : NULL);
152 r = device_get_properties_strv(udev_device->device, &envp);
169 r = device_get_properties_nulstr(udev_device->device, (const uint8_t **)&nulstr, &len);
183 r = device_get_devlink_priority(udev_device->device, &priority);
195 r = device_get_watch_handle(udev_device->device, &handle);
205 device_set_is_initialized(udev_device->device);
213 r = device_rename(udev_device->device, name);
221 struct udev_device *device;
226 device = udev_device_new(old_device->udev);
227 if (!device)
230 r = device_shallow_clone(old_device->device, &device->device);
232 udev_device_unref(device);
237 return device;
250 r = device_clone_with_db(udev_device_old->device, &udev_device->device);
261 struct udev_device *device;
264 device = udev_device_new(udev);
265 if (!device)
268 r = device_new_from_nulstr(&device->device, (uint8_t*)nulstr, buflen);
270 udev_device_unref(device);
275 return device;
279 struct udev_device *device;
282 device = udev_device_new(udev);
283 if (!device)
286 r = device_new_from_synthetic_event(&device->device, syspath, action);
288 udev_device_unref(device);
293 return device;
302 r = device_copy_properties(udev_device_dst->device, udev_device_src->device);
315 r = device_get_id_filename(udev_device->device, &filename);
328 device_set_watch_handle(udev_device->device, handle);
336 device_set_db_persist(udev_device->device);
342 device_set_devlink_priority(udev_device->device, priority);
352 r = device_add_devlink(udev_device->device, devlink);
364 r = device_add_property(udev_device->device, property, value);
376 r = device_add_tag(udev_device->device, tag);
386 device_remove_tag(udev_device->device, tag);
392 device_cleanup_tags(udev_device->device);
398 device_cleanup_devlinks(udev_device->device);
404 device_seal(udev_device->device);
410 device_read_db_force(udev_device->device);