summaryrefslogtreecommitdiff
path: root/udev
AgeCommit message (Collapse)Author
2009-06-04udevd: close netlink socket in worker and set cloexecKay 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-06-01str[sp]cpyl: add __attribute__ ((sentinel))Kay Sievers
2009-05-29udevd: remove check for dev_t, DEVPATH_OLD takes care of thatKay Sievers
2009-05-29udevadm: settle - add --exit-if-exists=<file>Kay Sievers
2009-05-28udevadm: control - add comment to man page about --reload-rulesKay Sievers
2009-05-28udevd: queue-export - fix crashAlan Jenkins
The math in skip_to() was the wrong way round and allocated a variable size array on the stack with a massively negative size. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-05-28udev-selinux.c: remove libudev headerAlan Jenkins
Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-05-21udevadm: settle - make --timeout=0 workingKay Sievers
2009-05-21udevd: implement a more efficient queue file formatAlan Jenkins
Directory lookups show up in profiling. The queue files are responsible for a large proportion of file-related system calls in udev coldplug. Instead of creating a file for each event, append their details to a log file. The file is periodically rebuilt (garbage-collected) to prevent it from growing indefinitely. This single queue file replaces both the queue directory and the uevent_seqnum file. On desktop systems the file tends not to grow beyond one page. So it should also save a small amount of memory in tmpfs. Tests on a running EeePC indicate average savings of 5% *udevd* cpu time as measured by oprofile. __link_path_walk is reduced from 1.5% to 1.3%. It is not completely clear where the rest of the gains come from. In tests running ~400 events, the queue file is rebuilt about 5 times. Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-05-21udevd: remove tiny bit of dead codeAlan Jenkins
2009-05-21fix location of database filesKay Sievers
2009-05-21keep the ifdef'd udevd testing/profiling hackKay Sievers
2009-05-20require key names in uppercaseKay Sievers
Drop pretty expensive case-insensitive matching, and key names in mixed or lowercase are not supported anyway.
2009-05-20remove unused GL_FORMAT from rules parserKay Sievers
2009-05-20use openat(), unlinkat(), fstatat()Kay Sievers
2009-05-20use more efficient string copyingKay Sievers
2009-05-20udevadm: settle - fix timeoutAlan Jenkins
The timeout wasn't working when settle was run as root: # udevadm control --stop-exec-queue # udevadm trigger # udevadm settle --timeout=1 ... (hangs) Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
2009-05-19remove format char string truncation syntaxKay Sievers
2009-05-14OWNER/GROUP: fix if logicScott James Remnant
The introduction of the --resolve-names=early/never code introduced a bug to the OWNER/GROUP lookup. Previously if the name had contained $, lookup would have been performed later; after the patch, the key ended up being ignored!
2009-05-13fix possible endless loop for GOTO to non-existent LABELKay Sievers
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526365
2009-05-07add "static" back to the inline functionsKay Sievers
<Keybuk> kay: udev git head ftbfs <Keybuk> udev-watch.o: In function `udev_selinux_init': <Keybuk> /../udev/udev.h:130: multiple definition of `udev_selinux_init'
2009-05-05remove asmlinkageKay 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-05-02udevd: revert initial device node creationKay Sievers
2009-04-28accept DEVNAME from the kernel as a hint for the node nameKay Sievers
2009-04-26drop "extern" keyword from non-static functionKay Sievers
2009-04-24update NEWSKay Sievers
2009-04-23libudev: monitor - export filter_update()Kay Sievers
2009-04-23libudev: queue - clarify commentsKay Sievers
2009-04-23libudev: queue - fix get_seqnum_is_finished()Kay Sievers
On Thu, Apr 23, 2009 at 11:39, Alan Jenkins <alan-jenkins@tuffmail.co.uk> wrote: > I'm puzzled by this function: > > /* if we have not seen this seqnum, check if it is/was already queued */ > if (seqnum < udev_queue->last_seen_udev_seqnum) { > udev_queue_get_udev_seqnum(udev_queue); > if (seqnum < udev_queue->last_seen_udev_seqnum) > > Shouldn't the test be (seqnum > udev_queue->last_seen_udev_seqnum) ?
2009-04-23libudev: monitor - add udev_monitor_filter_removeKay Sievers
2009-04-23udevadm: monitor - add <subsytem>:<devtype> supportKay 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-22udevadm monitor - add --subsystem-match=Kay Sievers
2009-04-22update TODOKay Sievers
2009-04-22udevadm: monitor - print error if we can not bind to socketKay 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-19udevd: at startup create /dev/null, /dev/console, /dev/kmsgKay Sievers
2009-04-18test-libudev: update monitor sourceKay Sievers
2009-04-16udevd: log error for too old kernels or CONFIG_SYSFS_DEPRECATEDKay Sievers
2009-04-16libudev: monitor - clarify socket handling documentationKay Sievers
2009-04-15libudev: path_encode - always return 0 if encoded string does not fit into sizeKay 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-08path_encode: fix max length calculationKay Sievers
Sebastian Krahmer wrote: > it should reserve 4 times not 3 times len :)
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>