Age | Commit message (Collapse) | Author | |
---|---|---|---|
2009-04-08 | libudev: monitor - ignore messages from unusual sources | Scott James Remnant | |
For added protection, ignore any unicast message received on the netlink socket or any multicast message on the kernel group not received from the kernel. Signed-off-by: Scott James Remnant <scott@ubuntu.com> | |||
2009-04-08 | libudev: monitor - unify socket message handling | Kay Sievers | |
2009-04-08 | path_encode: fix max length calculation | Kay Sievers | |
Sebastian Krahmer wrote: > it should reserve 4 times not 3 times len :) | |||
2009-04-06 | avoid leaking netlink socket fd to external programs | Alan Jenkins | |
The netlink socket is now used by udev event processes. We should take care not to pass it to the programs they execute. This is the same way the inotify fd was handled. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk> | |||
2009-03-29 | "UDEV_MONITOR_KERNEL/UDEV" -> "kernel/udev" | Kay Sievers | |
2009-03-29 | send monitor events back to netlink socket | Kay Sievers | |
Instead of of our own private monitor socket, we send the processed event back to our netlink socket, to the multicast group 2 -- so any number of users can listen to udev events, just like they can listen to kernel emitted events on group 1. | |||
2009-03-26 | libudev: GPL -> LGPL | Kay Sievers | |
2009-03-18 | udevadm: test - handling trailing '/' in devpath | Kay Sievers | |
On Wed, Mar 18, 2009 at 16:00, Matthias Schwarzott <zzam@gentoo.org> wrote: found out how the error occurs: It is a difference between A. udevadm test /sys/class/mem/null/ and B. udevadm test /sys/class/mem/null Case A was the case that showed the error behaviour. It seems udevadm is confused by the trailing slash. This behaviour seems to be there since ages. | |||
2009-03-12 | udevadm: settle - synchronise with the udev daemon | Scott James Remnant | |
There's still a slight race condition when using udevadm settle, if the udev daemon has a pending inotify event but hasn't yet generated the "change" uevent for it, the kernel and udev sequence numbers will match and settle will exit. Now udevadm settle will send a control message to udevd, which will respond by sending SIGUSR1 back to the waiting udevadm settle once it has completed the main loop iteration in which it received the control message. If there were no pending inotify events, this will simply wake up the udev daemon and allow settle to continue. If there are pending inotify events, they are handled first in the main loop so when settle is continued they will have been turned into uevents and the kernel sequence number will have been incremented. Since the inotify event is pending for udevd when the close() system call returns (it's queued as part of the kernel handling for that system call), and since the kernel sequence number is incremented by writing to the uevent file (as udevd does), this solves the race. When the settle continues, if there were pending inotify events that udevd had not read, they are now pending uevents which settle can wait for. Signed-off-by: Scott James Remnant <scott@ubuntu.com> | |||
2009-03-11 | libudev: ctrl - return error after sending ctrl message | Kay Sievers | |
2009-03-04 | libudev: queue - use lstat() to check existence of symlink | Kay Sievers | |
2009-02-23 | Allow watch handle to be stored in the udevdb. | Scott James Remnant | |
2009-01-14 | libudev: use 4096 bytes buffer for attribute reading | Kay Sievers | |
2009-01-06 | libudev: test - add udev_device_get_property_value() | Kay Sievers | |
2009-01-06 | libudev: device - add udev_device_get_property_value() | Kay Sievers | |
2009-01-03 | libudev: subsytem -> subsystem | Kay Sievers | |
2009-01-03 | libudev: device - remove udev_device_get_parent_with_subsystem | Marcel Holtmann | |
2009-01-03 | libudev: device - lookup subsystem and devtype together | Marcel Holtmann | |
2009-01-03 | libudev: device - read "uevent" only if info is not already loaded | Kay Sievers | |
2009-01-02 | libudev: device - add devtype support | Marcel Holtmann | |
2008-12-29 | libudev: enumerate - add lookup by property | Kay Sievers | |
2008-12-28 | if needed, store database entries also for devices which do not have a ↵ | Kay Sievers | |
device node | |||
2008-12-16 | libudev: include <sys/types.h> | Kay Sievers | |
2008-11-20 | libudev: accept NULL whitelist in util_replace_chars() | Kay Sievers | |
2008-11-17 | limit $attr(<symlink>) magic to well-known links only | Kay Sievers | |
2008-11-14 | libudev: device - handle disk "device" link for partitions in deprecated ↵ | Kay Sievers | |
sysfs layout Thanks to Mikhail Kolesnik <mike@openbunker.org> for finding this. | |||
2008-11-06 | udevadm: settle - exit if udevd exits | Kay Sievers | |
2008-11-05 | unify string replacement | Kay Sievers | |
2008-11-05 | do not import the "uevent" file when we only read the db to get old symlinks | Kay Sievers | |
2008-11-05 | fix cleanup of possible left-over symlinks | Kay Sievers | |
2008-11-04 | fix list handling in enumerate and rules file sorting | Kay Sievers | |
2008-11-01 | move some info() to dbg() | Kay Sievers | |
2008-10-26 | kerneldoc comment fixes | Alan Jenkins | |
s/ressources/resources/ Also reduce commas per sentence and add a possessive apostrophe. | |||
2008-10-26 | libudev: device - allocate envp array only once | Kay Sievers | |
2008-10-26 | test: add RUN+="socket: ..." to a test to run monitor code | Kay Sievers | |
2008-10-26 | libudev: device - fill envp array while composing monitor buffer | Kay Sievers | |
Thanks to Alan Jenkins, for the idea. | |||
2008-10-24 | remove debug printf | Kay Sievers | |
2008-10-24 | libudev: monitor - cache result of monitor send buffer | Kay Sievers | |
2008-10-24 | libudev: monitor - replace far too expensive snprintf() with strlcpy() | Kay Sievers | |
2008-10-23 | shrink struct udev_event | Kay Sievers | |
2008-10-21 | replace strncpy() with strlcpy() | Alan Jenkins | |
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 | libudev: device - 128 -> ENVP_SIZE | Kay Sievers | |
2008-10-21 | libudev: allocate udev_device->envp[] dynamically | Alan Jenkins | |
Measured 2% _user_ cpu time reduction on EeePC coldplug. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk> | |||
2008-10-21 | libudev: util - optimize path_encode() | Alan Jenkins | |
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 | use more appropriate alternatives to malloc() | Alan Jenkins | |
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-20 | libudev: device - get_attr_value() -> get_sysattr_value() | Kay Sievers | |
2008-10-18 | prefix udev-util.c functions with util_* | Kay Sievers | |
2008-10-18 | udev_list_cleanup() -> udev_list_cleanup_entries() | Kay Sievers | |
2008-10-17 | libudev: make list_node functions available | Kay Sievers | |
2008-10-17 | libudev: ctrl - change magic to integer | Kay Sievers | |