Lines Matching defs:devices

38  * @short_description: lookup and sort sys devices
40 * Lookup devices in the sys filesystem, filter devices by properties,
41 * and return a sorted list of devices.
66 struct syspath *devices;
147 free(udev_enumerate->devices[i].syspath);
148 free(udev_enumerate->devices);
181 buf = realloc(udev_enumerate->devices, (udev_enumerate->devices_max + add) * sizeof(struct syspath));
184 udev_enumerate->devices = buf;
191 entry = &udev_enumerate->devices[udev_enumerate->devices_cur];
217 /* For devices that should be moved to the absolute end of the list */
234 /* For devices that should just be moved a little bit later, just
246 * guarantee when creating those devices, and hence we should
280 qsort_safe(udev_enumerate->devices, udev_enumerate->devices_cur, sizeof(struct syspath), syspath_cmp);
284 struct syspath *entry = &udev_enumerate->devices[i];
293 /* skip to be delayed devices, and add them to the end of the list */
297 prev = &udev_enumerate->devices[i];
301 /* skip to be delayed devices, and move the to
314 !strneq(entry->syspath, udev_enumerate->devices[move_later].syspath, move_later_prefix)) {
317 udev_enumerate->devices[move_later].syspath, NULL);
326 udev_enumerate->devices[move_later].syspath, NULL);
328 /* add and cleanup delayed devices from end of list */
330 struct syspath *entry = &udev_enumerate->devices[i];
347 * Match only devices belonging to a certain kernel subsystem.
367 * Match only devices not belonging to a certain kernel subsystem.
388 * Match only devices with a certain /sys device attribute.
409 * Match only devices not having a certain /sys device attribute.
450 * Match only devices with a certain property.
470 * Match only devices with a certain tag.
490 * Return the devices on the subtree of one given device. The parent
514 * Match only devices which udev has set up already. This makes
516 * and that network devices are fully renamed.
518 * Usually, devices which are found in the kernel but not already
520 * to monitor events and wait for these devices to become ready, instead
521 * of using uninitialized devices.
523 * For now, this will not affect devices which do not have a device node
541 * Match only devices with a given /sys device name.
691 * All devices with a device node or network interfaces
696 * For now, we can only check these types of devices, we
698 * for all other types of devices.
770 * Add a device to the list of devices, to retrieve it back sorted in dependency order.
795 /* scan only tagged devices, use tags reverse-index, instead of searching all devices in /sys */
904 scan_dir(udev_enumerate, "subsystem", "devices", NULL);
906 scan_dir(udev_enumerate, "bus", "devices", NULL);
916 * Scan /sys for all devices which match the given filters. No matches
917 * will return all currently available devices.
934 /* scan devices of all subsystems */