summaryrefslogtreecommitdiff
path: root/udev/lib/libudev-monitor.c
AgeCommit message (Collapse)Author
2009-06-08libudev: move to top-level directoryKay Sievers
2009-06-06fix signed/unsigned warningKay Sievers
2009-06-04udevd: convert to event worker processesKay Sievers
Event processes now get re-used after they handled an event. This reduces pressure on the CPU significantly because cloned event processes no longer cause page faults in the main daemon. After the events have settled, the no longer needed worker processes get killed.
2009-05-20use more efficient string copyingKay Sievers
2009-05-04remove all PHYSDEVPATH handling and warning aboutKay Sievers
2009-05-04handle devtmpfs nodesKay Sievers
UDev follows the kernel given name, and re-uses the kernel created device node. If the kernel and spcecified udev rules disagree, the udev specified node node is created and the kernel-created on is deleted.
2009-04-23libudev: monitor - export filter_update()Kay Sievers
2009-04-23libudev: monitor - add udev_monitor_filter_removeKay Sievers
2009-04-23libudev: monitor - do not filter messages with wrong magicKay Sievers
2009-04-23libudev: monitor - switch to filter_add_match_subsystem_devtype()Kay Sievers
2009-04-22libudev: monitor - use simpler hashKay Sievers
2009-04-22libudev: monitor - add client socket filter for subsystem valueKay Sievers
Messages send back by the udev daemon to the netlink socket are multiplexed by the kernel and delivered to multiple clients. The clients can upload a socket filter to let the kernel drop messages not belonging to a certain subsystem. This prevent needless wakeups and message processing for users who are only interested in a subset of available events. Recent kernels allow untrusted users to listen to the netlink messages. The messages send by the udev daemon are versioned, to prevent any custom software reading them without libudev. The message wire format may change with any udev version update.
2009-04-16libudev: monitor - clarify socket handling documentationKay Sievers
2009-04-08libudev: monitor - ignore messages from unusual sourcesScott 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-08libudev: monitor - unify socket message handlingKay Sievers
2009-04-06avoid leaking netlink socket fd to external programsAlan 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-29send monitor events back to netlink socketKay 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-26libudev: GPL -> LGPLKay Sievers
2009-01-02libudev: device - add devtype supportMarcel Holtmann
2008-11-01move some info() to dbg()Kay Sievers
2008-10-26kerneldoc comment fixesAlan Jenkins
s/ressources/resources/ Also reduce commas per sentence and add a possessive apostrophe.
2008-10-24libudev: monitor - cache result of monitor send bufferKay Sievers
2008-10-24libudev: monitor - replace far too expensive snprintf() with strlcpy()Kay Sievers
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-17libudev: monitor - add set_receive_buffer_size()Kay Sievers
2008-10-16libudev: monitor - export MAJOR/MINOR only if availableKay Sievers
2008-10-16libudev: device - export properties when values are setKay Sievers
2008-10-15libudev: monitor - do not mangle DEVLINKS propertyKay Sievers
2008-10-15libudev: monitor - fix send_device() property copyingKay Sievers
2008-10-09libudev: add udev_monitor_send_device()Kay Sievers
2008-10-09libudev: also prefix non-exported functions with udev_*Kay Sievers
2008-09-30libudev: device_init() -> device_new()Kay Sievers
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-26libudev: device - read database only when neededKay Sievers
2008-09-19always include config.h from MakefileKay 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-10libudev: do not use any udev source fileKay Sievers
2008-09-09libudev: monitor- add netlink uevent supportKay Sievers
2008-09-09libudev: monitor - add event properties to udev_deviceKay Sievers
2008-09-09add a bunch of private device properties to udev_deviceKay Sievers
2008-09-08move udev_ctrl to libudev-privateKay Sievers
2008-09-06use libudev code, unify logging, pass udev context around everywhereKay Sievers
2008-09-01libudev: add udev_device_get_syspath()Kay Sievers
2008-09-01libudev: fix monitor documentationKay Sievers
2008-08-30libudev: add monitor documentationKay Sievers
2008-08-28libudev: add udev event monitor APIKay Sievers