Lines Matching defs:device
32 #include "sd-device.h"
35 #include "device-enumerator-private.h"
36 #include "device-util.h"
37 #include "libudev-device-internal.h"
50 * Opaque object representing one device lookup/sort context.
157 * Get the first entry of the sorted list of device paths.
165 sd_device *device;
169 FOREACH_DEVICE_AND_SUBSYSTEM(udev_enumerate->enumerator, device) {
173 r = sd_device_get_syspath(device, &syspath);
191 * @subsystem: filter for a subsystem of the device to include in the list
209 * @subsystem: filter for a subsystem of the device to exclude from the list
227 * @sysattr: filter for a sys attribute at the device to include in the list
230 * Match only devices with a certain /sys device attribute.
246 * @sysattr: filter for a sys attribute at the device to exclude from the list
249 * Match only devices not having a certain /sys device attribute.
265 * @property: filter for a property of the device to include in the list
284 * @tag: filter for a tag of the device to include in the list
302 * @parent: parent device where to start searching
304 * Return the devices on the subtree of one given device. The parent
307 * A reference for the device is held until the udev_enumerate context
318 return sd_device_enumerator_add_match_parent(udev_enumerate->enumerator, parent->device);
326 * sure, that the device node permissions and context are properly set
334 * For now, this will not affect devices which do not have a device node
348 * @sysname: filter for the name of the device to include in the list
350 * Match only devices with a given /sys device name.
366 * @syspath: path of a device
368 * Add a device to the list of devices, to retrieve it back sorted in dependency order.
373 _cleanup_(sd_device_unrefp) sd_device *device = NULL;
381 r = sd_device_new_from_syspath(&device, syspath);
385 r = device_enumerator_add_device(udev_enumerate->enumerator, device);