summaryrefslogtreecommitdiff
path: root/udevd.c
AgeCommit message (Collapse)Author
2006-08-21cleanup commandline argument handlingKay Sievers
Print and log failure, but don't fail for tools which are usually not used iteractively. Add '--help' to all tools.
2006-08-20export DRIVER for older kernels as a replacement for PHYSDEVDRIVERKay Sievers
2006-08-18selinux: init once in the daemon, not in every event processHarald Hoyer
2006-08-15udevd: remove huge socket buffer on the control socketKay Sievers
2006-08-13udevd: read DRIVER from the environmentKay Sievers
2006-08-10udevd: autotune max_childs/max_childs_runningKay Sievers
2006-08-05udevd: remove useless udevinitsend parameterKay Sievers
2006-08-05initialize unused sockets to -1Kay Sievers
2006-08-05rename udevcontrol message types and variablesKay Sievers
2006-07-25remove 'static' from local variableKay Sievers
2006-07-21increase /proc/stat read bufferKay Sievers
2006-07-21switch uevent netlink socket to group 1 onlyKay Sievers
2006-05-27remove udevsendKay Sievers
2006-04-28udevd: create leading directories for /dev/.udev/uevent_seqnumKay Sievers
2006-04-25udevd: export initial sequence number on startupKay Sievers
2006-04-06let udevmonitor show the possibly renamed devpathKay Sievers
For renamed network interfaces, the udev socket message header contained the original devpath, which we have updated in the environment after the kernel has silently renamed the netif.
2006-04-06add inotify support for hppa and MIPS and log if inotify is not availableMarco d'Itri
2006-04-05udevd: export current seqnum and add udevsettleKay Sievers
2006-03-16correct use of fcntl()Kay Sievers
2006-03-16reset signal handler in event processKay Sievers
2006-02-23udevd: fix queue export for multiple events for the same deviceKay Sievers
Identified by Joachim Plack <jplack@suse.de> while working around the problem that the device nodes appear and disappear while the partitiontable is re-read and the application need to waait for an empty udevd queue.
2006-01-28remove UDEVD_UEVENT_INITSENDKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-25let "ignore_device" always return the event successfullyKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-25rename apply_format() cause it is public nowKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-24substitute format chars in RUN after rule matchingAndrey Borzenkov
Apply substitutions before running a program, not while the rule is parsed. It allows to use environment variables set during rule processing as command arguments.
2006-01-24increase kernel uevent buffer sizeKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-20ignore all messages with missing devpath or actionKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2006-01-09replace libsysfsKay Sievers
We never used any of the libsysfs convenience features. Here we replace it completely with 300 lines of code, which are much simpler and a bit faster cause udev(d) does not open any syfs file for a simple event which does not need any parent device information. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-12-04update SUSE rulesKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-25move SEQNUM event skipping to udevsendKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-22clean-up empty queue directoriesScott James Remnant
This allows scripts to do: while test -d /dev/.udev/queue; do sleep 0.1; done And don't create a failed symlink if there is another event for the same devpath in the queue.
2005-11-17udevd: add a missing returnKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-17udevd: track killed event processes as failedKay Sievers
Thanks to Marco for catching this. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-16remove "udev_db" option from config fileKay Sievers
All udev state is kept in /$udev_root/.udev/ now. No option to configure that anymore, it will always be there. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-16udevd: export event queue and event stateKay Sievers
All pending and running events can be found as symlinks to the actual device in /dev/.udev/queue/ now. This way we can lookup if specific events are still in the queue, before doing actions which require events to have finished. All failed event processes can be found in /dev/.udev/failed/. This makes it possible to retry a failed event process at a later time in the boot process. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-16udevd: track exit status of event processKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-16udevd: ignore all messages without DEVPATHKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-12add linux/types.h back, old glibc-kernel-headers want itKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-07move some logging from dbg() to info()Marco d'Itri
2005-11-07add strerror() to error logsMarco d'Itri
2005-11-07never queue events with TIMEOUT setKay Sievers
With removing the event reorder queue, we can fix the TIMEOUT events like firmware loading proper, and never delay any of these events. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-07udevd: depend on netlink and remove all sequence reorder logicKay Sievers
Netlink will never get out-of-order and we just depend on it from now on. Udevsend messages will have no effect if they contain a sequence number (SEQNUM). Thanks to Bastian Blank <waldi@debian.org>, for the debugging session which identified a bug where the timeouts are not working if inotify was not available. All the timeout handling is removed now and this issue should be solved. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-05fix typo in umask()Kay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-05remove precompiled rules optionKay Sievers
It was a workaround for speed up udev "coldplug", where ~800 events happened a second time during bootup. No need for it with the rules aleady parsed in the daemon. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-05udevd: disable OOMKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-11-04udevd: don't daemonize before initializationKay Sievers
Move socket init and rule parsing before forking, so we can start emitting event immediately after udevd has started. Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
2005-10-27move rules parsing into daemonKay Sievers
The rules files are parsed only once at daemon startup. Every udev event process will be fork()'d from udevd without exec()'ing the udev binary. The in-memory rules will be inherited from the daemon itself. If inotify is available, udevd will reload all rules if any change in /etc/udev/rules.d/ happens. Otherwise -HUP or "udevcontrol reload_rules" can be used. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-27fix the new warnings I asked forKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-12udevd: move logging from err to info for non-hotplug ueventKay Sievers
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
2005-10-11force event socket buffer size to 16MBKay Sievers
Netlink events get lost when the kernel creates thousends of events faster than udevd reads it. The default is 128 KB, which can carry app. 500 events. Set it to 16 MB now. I have 4000 fibrechannel LUNs connected to my system. There are two paths to the devices and two ports on the host connected via a switch. This gives 16000 when probed. I have had problems getting all of the entries in /dev created. -- Mark Haverkamp <markh@osdl.org> Signed-off-by: Kay Sievers <kay.sievers@suse.de>