summaryrefslogtreecommitdiff
path: root/udev
AgeCommit message (Collapse)Author
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>
2009-03-30IMPORT: 2048 -> 4096 bytes bufferKay Sievers
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-03-18udevadm: monitor - clarify printed headerKay Sievers
2009-03-18udevadm: test - handling trailing '/' in devpathKay 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-17udevadm: trigger - add "--action" to --helpRobby Workman
2009-03-12udevadm: settle - synchronise with the udev daemonScott 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-11udevadm: settle - use timeout signal, instead of loop counterKay Sievers
2009-03-11libudev: ctrl - return error after sending ctrl messageKay Sievers
2009-03-07udevadm: add text for new options to command and man pageKay Sievers
2009-03-05udevd: switch watch symlinks to devpathKay Sievers
Some broken tools get confused following links to /sys, switch to link targets carrying the devpath instead of the syspath, like the queue links.
2009-03-04udevadm: settle - add --seq-start= --seq-end=Kay Sievers
It might be useful in some cases not to wait for "all" events. $ read START < /sys/kernel/uevent_seqnum $ (do something which may create uevents) $ udevadm settle --seq-start=$START
2009-03-04libudev: queue - use lstat() to check existence of symlinkKay Sievers
2009-03-03fix compile error in debug modeMichael Prokop
When building with './configure --enable-debug && make' it fails with: udev-rules.c: In function ‘dump_token’: udev-rules.c:366: error: ‘struct <anonymous>’ has no member named ‘i’ Signed-off-by: Michael Prokop <mika@grml.org>
2009-02-26udevadm: info - export all devices with --export-dbKay Sievers
2009-02-25add "nowatch" to disable a default installed watch with a later ruleKay Sievers
2009-02-24use the event udev_device to disable the watch on "remove"Kay Sievers
2009-02-24remove static local variableKay Sievers
2009-02-23Look at more inotify events in the buffer than just the first.Scott James Remnant
2009-02-23lookup the old watch handle; reload only if has a pathScott James Remnant
2009-02-23Output watch handle in udevadm info.Scott James Remnant
2009-02-23Put a log message in a more sensible place.Scott James Remnant
2009-02-23Use the udevdb to speed up watch clearing.Scott James Remnant
Also return a udev_device when looking up by handle as well, so everything works the same way.