summaryrefslogtreecommitdiff
path: root/udev/lib/libudev-device.c
AgeCommit message (Collapse)Author
2008-10-26libudev: device - allocate envp array only onceKay Sievers
2008-10-26test: add RUN+="socket: ..." to a test to run monitor codeKay Sievers
2008-10-26libudev: device - fill envp array while composing monitor bufferKay Sievers
Thanks to Alan Jenkins, for the idea.
2008-10-24remove debug printfKay Sievers
2008-10-24libudev: monitor - cache result of monitor send bufferKay Sievers
2008-10-23shrink struct udev_eventKay Sievers
2008-10-21replace 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-21libudev: device - 128 -> ENVP_SIZEKay Sievers
2008-10-21libudev: allocate udev_device->envp[] dynamicallyAlan Jenkins
Measured 2% _user_ cpu time reduction on EeePC coldplug. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-10-21use 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-20libudev: device - get_attr_value() -> get_sysattr_value()Kay Sievers
2008-10-18udev_list_cleanup() -> udev_list_cleanup_entries()Kay Sievers
2008-10-17libudev: fix sysnum logic for digit-only device namesAlan Jenkins
2008-10-16udevd: use libudevKay Sievers
2008-10-16libudev: device - copy global properties, unset empty propertiesKay Sievers
2008-10-16libudev: device - export properties when values are setKay Sievers
2008-10-15libudev: device - lookup "subsystem" and "driver" only onceKay Sievers
2008-10-15libudev: update DEVLINKS property when properties are readKay Sievers
2008-10-15libudev: device - add get_envp() to construct envp from property listKay Sievers
2008-10-14libudev: handle ! in sysname, add sysnum, return allocated list_entry on addKay Sievers
2008-10-11libudev: device - generate DEVNAME and DEVLINKS propertiesKay Sievers
2008-10-09libudev: add udev_monitor_send_device()Kay Sievers
2008-10-09libudev: also prefix non-exported functions with udev_*Kay Sievers
2008-10-07libudev: device - add device lookup by subsystem:sysnameKay Sievers
2008-10-06libudev: fix typo in "multiple entries in symlink" handlingKay Sievers
2008-10-06store node name and symlinks into db symlink target if they are small enoughKay Sievers
2008-10-02libudev: device - add get_parent_with_subsystem()Kay Sievers
2008-10-01libudev: device - handle /sys/block/<disk-device-link>/<partition>Kay Sievers
2008-09-30libudev: device_init() -> device_new()Kay Sievers
2008-09-30libudev: enumerate - scan devices and subsystems, add subsystem and ↵Kay Sievers
attribute filter
2008-09-29replace strerror() usage with threadsafe "%m" format stringAlan Jenkins
strerror() is not threadsafe. It uses a buffer to build messages of the form "Unknown error 387689". syslog() provides a %m format which is equivalent to strerror(errno). As a GNU extension, this is also accepted by printf and friends. At least in the current implementation, it is correctly threadsafe. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2008-09-29libudev: enumerate - split new() and scan()Kay Sievers
2008-09-28libudev: enumerate - accept list of subsystems to scan, or skipKay Sievers
2008-09-28lubudev: accept more sys directories as devices, and parent devicesKay Sievers
2008-09-28libudev: more list reworkKay Sievers
2008-09-26libudev: rework list handlingKay Sievers
2008-09-26libudev: device - read database only when neededKay Sievers
2008-09-26libudev: enumerate_get_devices_list -> enumerate_get_listKay Sievers
2008-09-25libudev: get devnum from uevent fileKay Sievers
2008-09-25libudev: replace awkward callback list interfaces with list iteratorsKay Sievers
2008-09-24libudev: also import "uevent" file when reading udev databaseKay Sievers
2008-09-21libudev: add udev_device_new_from_devnum()Kay Sievers
2008-09-20libudev: udev_device_get_devname -> udev_device_get_devnodeKay Sievers
2008-09-19always include config.h from MakefileKay Sievers
2008-09-17libudev: fix "subsystem" valueKay Sievers
2008-09-15libudev: switch API from devpath to syspathKay Sievers
2008-09-15libudev: handle "device" link as parent, handle "class" "block" as "subsystem"Kay Sievers
2008-09-13libudev: udev_device - add attribute cacheKay Sievers
2008-09-12libudev: switch to "udev_device_get_parent"Kay Sievers
2008-09-11udevadm: info - use "udev_device"Kay Sievers