Kay Sievers
58d882a6d7
libudev: subsytem -> subsystem
2009-01-03 15:24:59 +01:00
Marcel Holtmann
61ee8cc92d
libudev: device - remove udev_device_get_parent_with_subsystem
2009-01-03 15:12:28 +01:00
Marcel Holtmann
883012d49b
libudev: device - lookup subsystem and devtype together
2009-01-03 15:12:17 +01:00
Kay Sievers
b92511747a
libudev: device - read "uevent" only if info is not already loaded
2009-01-03 04:55:15 +01:00
Marcel Holtmann
bf8b2ae177
libudev: device - add devtype support
2009-01-02 04:37:04 +01:00
Kay Sievers
f089350234
libudev: enumerate - add lookup by property
2008-12-29 07:42:19 +01:00
Kay Sievers
1028fe14b6
if needed, store database entries also for devices which do not have a device node
2008-12-28 01:49:01 +01:00
Kay Sievers
4f06aaa9d8
libudev: include <sys/types.h>
2008-12-16 14:48:33 +01:00
Kay Sievers
bbfaec2b2f
libudev: accept NULL whitelist in util_replace_chars()
2008-11-20 02:43:34 +01:00
Kay Sievers
096e59edc9
limit $attr(<symlink>) magic to well-known links only
2008-11-17 02:01:37 +01:00
Kay Sievers
f454ecf754
libudev: device - handle disk "device" link for partitions in deprecated sysfs layout
...
Thanks to Mikhail Kolesnik <mike@openbunker.org> for finding this.
2008-11-14 18:26:49 +01:00
Kay Sievers
11d5eec2cb
udevadm: settle - exit if udevd exits
2008-11-06 19:41:58 +01:00
Kay Sievers
92f4313665
unify string replacement
2008-11-05 21:49:52 +01:00
Kay Sievers
77b852f333
do not import the "uevent" file when we only read the db to get old symlinks
2008-11-05 12:23:06 +01:00
Kay Sievers
6e0cb78c9d
fix cleanup of possible left-over symlinks
2008-11-05 04:45:23 +01:00
Kay Sievers
1e78dcbe51
fix list handling in enumerate and rules file sorting
2008-11-04 20:19:01 +01:00
Kay Sievers
86b5778857
move some info() to dbg()
2008-11-01 20:16:24 +01:00
Alan Jenkins
be7de4097a
kerneldoc comment fixes
...
s/ressources/resources/
Also reduce commas per sentence and add a possessive apostrophe.
2008-10-26 15:55:47 +01:00
Kay Sievers
427e20b261
libudev: device - allocate envp array only once
2008-10-26 14:31:46 +01:00
Kay Sievers
c6243a414e
test: add RUN+="socket: ..." to a test to run monitor code
2008-10-26 04:35:32 +01:00
Kay Sievers
6493e655f7
libudev: device - fill envp array while composing monitor buffer
...
Thanks to Alan Jenkins, for the idea.
2008-10-26 03:39:41 +01:00
Kay Sievers
b62557daff
remove debug printf
2008-10-24 18:09:13 +02:00
Kay Sievers
c265440279
libudev: monitor - cache result of monitor send buffer
2008-10-24 16:36:27 +02:00
Kay Sievers
3c67f7d2df
libudev: monitor - replace far too expensive snprintf() with strlcpy()
2008-10-24 15:09:43 +02:00
Kay Sievers
b99028c963
shrink struct udev_event
2008-10-23 02:57:08 +02:00
Alan Jenkins
111e4f81ff
replace strncpy() with strlcpy()
...
The problem was strncpy() doesn't stop after writing the terminating
NUL; by definition it goes on to zero the entire buffer.
I spy another use of strncpy in udev_device_add_property_from_string(),
which is responsible for another ~1% user cpu time...
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-21 23:55:13 +02:00
Kay Sievers
9a23e9e775
libudev: device - 128 -> ENVP_SIZE
2008-10-21 13:58:19 +02:00
Alan Jenkins
be18918f65
libudev: allocate udev_device->envp[] dynamically
...
Measured 2% _user_ cpu time reduction on EeePC coldplug.
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-21 13:56:23 +02:00
Alan Jenkins
fa0e955a93
libudev: util - optimize path_encode()
...
Since we already know the length, use memcpy() instead.
Measured 2% _user_ cpu time reduction on EeePC coldplug.
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-21 13:09:31 +02:00
Alan Jenkins
b29a5e4ab9
use more appropriate alternatives to malloc()
...
Use calloc to request cleared memory instead.
Kernel and libc conspire to make this more efficient.
Also, replace one malloc() + strcpy() with strdup().
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-21 12:54:57 +02:00
Kay Sievers
69239210be
libudev: device - get_attr_value() -> get_sysattr_value()
2008-10-20 18:12:36 +02:00
Kay Sievers
54808d77a3
prefix udev-util.c functions with util_*
2008-10-18 20:12:55 +02:00
Kay Sievers
eb8837e15c
udev_list_cleanup() -> udev_list_cleanup_entries()
2008-10-18 19:27:38 +02:00
Kay Sievers
9dcf7ec8a0
libudev: make list_node functions available
2008-10-17 18:59:08 +02:00
Kay Sievers
b692a75089
libudev: ctrl - change magic to integer
2008-10-17 17:32:17 +02:00
Kay Sievers
cb25a9585d
libudev: monitor - add set_receive_buffer_size()
2008-10-17 16:49:27 +02:00
Kay Sievers
bdeab5c7fd
libudev: add sysnum to test program
2008-10-17 13:54:14 +02:00
Alan Jenkins
babcf3cb22
libudev: fix sysnum logic for digit-only device names
2008-10-17 13:19:54 +02:00
Kay Sievers
3feeb77c97
libudev: list - prepend udev_* to all functions
2008-10-17 01:39:10 +02:00
Kay Sievers
be7f7f5701
fix sorting of rules files
2008-10-16 21:12:08 +02:00
Kay Sievers
daa849db6f
udev-rules-parse: name_list -> udev_list
2008-10-16 20:12:16 +02:00
Kay Sievers
3361a0f110
libudev: monitor - export MAJOR/MINOR only if available
2008-10-16 18:56:19 +02:00
Kay Sievers
3fb629fd5e
libudev: always add UDEV_LOG
2008-10-16 18:51:05 +02:00
Kay Sievers
fc233a874b
move udev_device_db to libudev
2008-10-16 17:30:06 +02:00
Kay Sievers
aa8734ffcb
udevd: use libudev
2008-10-16 17:16:58 +02:00
Kay Sievers
ebacd6ecc3
libudev: device - copy global properties, unset empty properties
2008-10-16 13:53:16 +02:00
Kay Sievers
f183b6ed76
libudev: add global property list
2008-10-16 13:51:29 +02:00
Kay Sievers
6a95b1e7d6
libudev: ctrl - fix typo in set_env()
2008-10-16 13:34:11 +02:00
Kay Sievers
2c09b3b41d
libudev: list - handle update of key with NULL value
2008-10-16 13:33:13 +02:00
Kay Sievers
31f4b036ea
libudev: device - export properties when values are set
2008-10-16 11:37:22 +02:00