1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 15:21:37 +03:00
Commit Graph

8 Commits

Author SHA1 Message Date
Kay Sievers
3cf1a8e36e libudev: device - use DEVMODE from kernel as the default mode 2011-05-16 22:04:02 +02:00
Kay Sievers
13052c0285 use 'else if' in epoll event array loop 2011-04-17 22:10:18 +02:00
Kay Sievers
f2fd4d2723 libudev: test - use epoll 2011-04-15 12:18:06 +02:00
Kay Sievers
d53a3878d2 test-libudev: add short options 2011-03-04 22:56:54 +01:00
Kay Sievers
48a0170b11 libudev: enumerate - allow to filter-out not-already-initialized devices 2010-12-14 14:18:32 +01:00
Kay Sievers
88cbfb09ee while (1) -> for (;;) 2010-05-27 15:11:00 +02:00
Kay Sievers
871a36bd7e libudev: enumerate - sort with qsort()
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-07-08 02:04:49 +02:00
Kay Sievers
48a9b173e8 libudev: move to top-level directory 2009-06-08 21:36:06 +02:00