summaryrefslogtreecommitdiff
path: root/libudev/libudev-enumerate.c
AgeCommit message (Collapse)Author
2011-08-04libudev: list - use binary search for list lookupKay Sievers
2011-07-08libudev: enumerate - clarify documentationKay Sievers
2011-07-08libudev: enumerate - include parent device itself with match_parent()Kay Sievers
2011-07-08libudev: enumerate - add udev_enumerate_add_match_parent()Kay Sievers
2011-06-18libudev: enumerate - scan /sys/moduleKay Sievers
2011-05-26libudev: enumerate - do not ignore other matches when add_match_tag() is usedKay Sievers
2011-05-20libudev: export symbols explicitely and individually from C code not from ↵Kay Sievers
separate file or prefix match
2011-04-24libudev: list - use bit flags for 'sort' and 'unique'Kay Sievers
2011-03-23use /run/udev/ if possible and fall back to /dev/.udev/Kay Sievers
2011-03-15move /dev/.udev/ to /dev/.run/udev/ and convert old udev database at udevd ↵Kay Sievers
startup
2011-02-15update some commentsKay Sievers
2011-02-15udevadm: enumerate - update prev pointer properlyKei Tokunaga
When I tried to boot a system with 256 disks x 4 paths with device-mapper, udevadm trigger (--type=devices) that was called from start_udev ended up dumping a core due to a segmentation fault. In udev_enumerate_get_list_entry(), if it finds the devices that should be delayed, it calls syspath_add(). If realloc() in syspath_add() allocates the required memory at a different memory address, referring prev->len afterward causes the segmentation fault. Signed-off-by: Kei Tokunaga <tokunaga.keiich@jp.fujitsu.com>
2010-12-14libudev: enumerate - allow to filter-out not-already-initialized devicesKay Sievers
2010-12-12udevd: switch to common id_filename functionsKay Sievers
2010-06-05libudev: fix fd leak in udev_enumerate_scan_devices() when tags are searchedKay Sievers
Thanks to Lennart for finding this.
2010-04-22add TAG= to improve event filtering and device enumerationKay Sievers
2009-12-30libudev: enumerate - fix move_later logicThomas de Grenier de Latour
The move_later_prefix variable was reset to zero on each loop iteration, and thus the move_later entry (if any) was not added right after changing to another syspath prefix, but rather after exiting the enumeration loop.
2009-12-21Speed up udev_enumerate_scan_*Martin Pitt
Check property match earlier, to avoid lots of readlink() and stat() calls when we check property matches.
2009-12-15remove remaining support for CONFIG_SYSFS_DEPRECATEDKay Sievers
2009-09-08fix randonm findings from llvm-clang-analyzerKay Sievers
Thanks to Lennart for the log file!
2009-08-06libudev: silent gcc warning: may be used uninitialized in this functionKay Sievers
2009-07-28enumeration: move ALSA control devices to the end of the enumerated devices ↵Lennart Poettering
of each card Generally ALSA control devices should be the last ones to be processed for ACL changes and similar operations because they can then be used as indicators that ACL management finished for all device nodes of a specific card. This patch simple moves each controlC device behind all the pcmC devices (and similar).
2009-07-23udevadm: trigger - add --sysname-match=Kay Sievers
$ udevadm trigger -n -v --subsystem-match=usb --sysname-match=2-1.1* /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1 /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1/2-1.1.1 /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1/2-1.1.1/2-1.1.1:1.0 /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1/2-1.1.2 /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1/2-1.1.2/2-1.1.2:1.0 /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1/2-1.1.2/2-1.1.2:1.1 /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1.1/2-1.1:1.0
2009-07-08libudev: enumerate - sort with qsort()Kay Sievers
On machines with many thousands of devices: $ time find /sys -name uevent | wc -l 74876 real 0m33.171s user 0m3.329s sys 0m29.719s the current udevtrigger spends minutes sorting the device list: $ time /sbin/udevadm trigger --dry-run real 4m56.739s user 4m45.743s sys 0m7.862s with qsort() it looks better: $ time udev/udevadm trigger --dry-run real 0m6.495s user 0m0.473s sys 0m5.923s
2009-06-15libudev: doc - add enumerateKay Sievers
2009-06-15libudev: doc - add section headersKay Sievers
2009-06-08libudev: move to top-level directoryKay Sievers