1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-15 07:24:00 +03:00
Commit Graph

78 Commits

Author SHA1 Message Date
Kay Sievers
3cf5266b02 builtin: move usb-db, pci-db to builtins 2011-12-27 17:02:52 +01:00
Kay Sievers
4f1795cca7 move rules dirs to udev context; replace inotify with time-controlled stat() 2011-12-27 03:49:43 +01:00
Kay Sievers
80df994cc2 builtin: kmod - hook up udev main logging to libkmod 2011-12-25 18:59:42 +01:00
Kay Sievers
57f4ef67aa builtin: firmware - move 'firmware' tool to builtins 2011-12-25 17:58:30 +01:00
Kay Sievers
7c85d636e6 invalidate rules and kmod index with 'udevadm control --reload'
- rename --reload-rules to --reload
  - invalidate rules and databases only, delay parsing to the next event
  - enable debug output for test-builtin
2011-12-25 16:37:15 +01:00
Kay Sievers
779f4de1b9 builtin: rename load()/unload() to init()/exit() 2011-12-24 17:58:52 +01:00
Kay Sievers
c38a141b1f update blkid builtin 2011-12-23 03:16:56 +01:00
Kay Sievers
e216e514cf build argv[] for builtin commands 2011-12-23 02:02:44 +01:00
Kay Sievers
aa29418a13 add builtin load/unload initializers 2011-12-21 23:10:56 +01:00
Kay Sievers
81dadce58f prepare builtins for blkid and kmod 2011-12-21 22:30:48 +01:00
Kay Sievers
1f5a5100f3 udevd: control - no not delete socket file when --daemon is used 2011-10-10 00:38:56 +02:00
Kay Sievers
5cc4112e6d udevadm: control - use /run/udev/control socket instead of abstract namespace one 2011-10-09 22:52:03 +02:00
Kay Sievers
79449642eb do not remove static nodes on module unload 2011-08-11 20:37:49 +02:00
Kay Sievers
d7867b3183 implement path_id, usb_id, input_id as built-in command 2011-08-05 02:00:30 +02:00
Kay Sievers
869c903160 libudev: list - use binary search for list lookup 2011-08-04 22:59:58 +02:00
Kay Sievers
1985c76e48 udevadm: move udevadm command descriptions into their files 2011-07-14 01:53:23 +02:00
Kay Sievers
c15d02e570 libudev: ctrl - move code to udev directory 2011-07-11 01:16:32 +02:00
Kay Sievers
3cf1a8e36e libudev: device - use DEVMODE from kernel as the default mode 2011-05-16 22:04:02 +02:00
Kay Sievers
ead7c62ab7 udevadm: settle - kill alarm() 2011-04-20 02:18:22 +02:00
Kay Sievers
2181d30a34 timeout handling without alarm() 2011-04-20 01:54:38 +02:00
Kay Sievers
3b529da425 allow final assignment for OPTIONS:="nowatch"
A final assignemnt operator will disable any device watching by
inotify, and any possible later rules setting "watch" again will
be ignored.
2010-07-07 11:35:40 +02:00
Kay Sievers
c830e98d6a udevd: read debug settings from kernel commandline 2010-05-28 12:07:27 +02:00
Kay Sievers
761dfddcc0 create static nodes provided by kernel modules to allow module autoloading 2010-05-20 17:09:04 +02:00
Kay Sievers
c7cdd8b2d2 remove unused parameter from udev_node_mknod() 2010-05-03 18:08:51 +02:00
Kay Sievers
0ec5b5e142 unify/cleanup event handling 2010-04-12 15:51:16 +02:00
Kay Sievers
cdae488a3f remove "ignore_device"
There is no way to ignore an event these days. Libudev events can
not be suppressed. It only prevents RUN keys from being executed,
which results in an inconsistent behavior in current setups.
2009-11-16 15:22:17 +01:00
Jeremy Kerr
d412a68573 util_run_program: restore signal mask before executing event RUN commands
External programs triggered by events (via RUN=) will inherit udev's
signal mask, which is set to block all but SIGALRM. For most utilities,
this is OK, but if we start daemons from RUN=, we run into trouble
(especially as SIGCHLD is blocked).

This change saves the original sigmask when udev starts, and restores it
just before we exec() the external command.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2009-09-07 12:13:50 +02:00
Kay Sievers
6133f3432f cleanup ./configure installation directory options 2009-06-17 02:25:07 +02:00
Kay Sievers
44b49d3736 move common stuff from udev/ to private parts of libudev/ 2009-06-09 23:05:25 +02:00
Kay Sievers
9060b066d9 move syslog wrapper to libudev 2009-06-09 22:47:48 +02:00
Kay Sievers
48a9b173e8 libudev: move to top-level directory 2009-06-08 21:36:06 +02:00
Kay Sievers
1e03b754ae udevd: convert to event worker processes
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-04 01:44:04 +02:00
Kay Sievers
065db05221 use more efficient string copying 2009-05-20 17:57:52 +02:00
Kay Sievers
4a74214a58 add "static" back to the inline functions
<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-07 13:24:40 +02:00
Kay Sievers
37ed4f5619 drop "extern" keyword from non-static function 2009-04-26 13:59:39 +02:00
Scott James Remnant
047f88bca3 Use the udevdb to speed up watch clearing.
Also return a udev_device when looking up by handle as well, so
everything works the same way.
2009-02-23 17:43:53 +00:00
Scott James Remnant
bd284db142 udevd: optionally watch device nodes with inotify
This allows you to re-process the rules if the content of the device
has been changed, most useful for block subsystem to cause vol_id to
be run again.
2009-02-11 17:38:56 +00:00
Kay Sievers
ec2dd02e2a udevadm: test - remove --force option
Since a while we change the database with a "test" run, but do not update
the node and symlinks. We need to "force" all the time, to keep things
in sync.
2009-01-15 20:20:16 +01:00
Kay Sievers
92f4313665 unify string replacement 2008-11-05 21:49:52 +01:00
Kay Sievers
0bc74ea79f udevd: merge exec and run queue to minimize devpath string compares 2008-10-29 17:32:13 +01:00
Kay Sievers
b99028c963 shrink struct udev_event 2008-10-23 02:57:08 +02:00
Kay Sievers
40fd3bc837 shrink struct udev_event 2008-10-23 02:34:22 +02:00
Kay Sievers
6880b25d40 replace in-memory rules array with match/action token list
The in-memory rule array of a common desktop distro install took:
  1151088 bytes
with the token list:
  109232 bytes tokens (6827 * 16 bytes), 71302 bytes buffer
2008-10-23 00:13:59 +02:00
Kay Sievers
14f4025607 add util_resolve_subsys_kernel() 2008-10-22 18:03:38 +02:00
Kay Sievers
54808d77a3 prefix udev-util.c functions with util_* 2008-10-18 20:12:55 +02:00
Kay Sievers
c3b1fa66d2 selinux_init(udev) -> udev_selinux_init(udev) 2008-10-18 19:30:42 +02:00
Kay Sievers
f1128767cb move udev_rules_apply_format() to udev-event.c 2008-10-18 19:19:56 +02:00
Kay Sievers
2d73813ebc udev_rules_run() -> udev_event_execute_run(); 2008-10-18 15:50:16 +02:00
Kay Sievers
dcdcb8cc06 udev_event_run() -> udev_event_execute_rules() 2008-10-18 15:46:55 +02:00
Kay Sievers
d0db192fa5 move run_program to util 2008-10-18 15:25:05 +02:00