Commit Graph

80 Commits

Author SHA1 Message Date
Kay Sievers
5751707e0e configure.ac: version bump 2009-08-14 20:08:47 +02:00
Diego Elio 'Flameeyes' Pettenò
09b9a97e1f Use LT_INIT to explicit that udev needs libtool series 2. 2009-08-08 22:51:18 +02:00
Diego Elio 'Flameeyes' Pettenò
33eb18305d Finally, also merge gudev into the top-level Makefile.am.
The Introspection rules are not tested yet; more touch-ups have been made
for them.
2009-08-07 19:15:30 +02:00
Diego Elio 'Flameeyes' Pettenò
7d701b0e26 Merge keymap building in the top-level Makefile.am.
Slight adjustment around the tests and the rules for the new working
directory.
2009-08-07 19:15:29 +02:00
Diego Elio 'Flameeyes' Pettenò
b02140b6bc Also merge into the top-level Makefile.am the simpler extras. 2009-08-07 19:15:29 +02:00
Diego Elio 'Flameeyes' Pettenò
59d93adb29 Merge libudev, udev, and the unconditional extras in a single Makefile.am.
Instead of using multiple recursive Makefile.am files, use a single
Makefile.am that sets and builds all the basic suite of libraries and
binaries for udev. This reduces the number of files in the source tree, and
also reduces drastically the build time when using parallel-make.

With this setup, all the compile steps will be executed in parallel, and
just the linking stage will be (partially) serialised on the libraries
creation.
2009-08-07 19:15:28 +02:00
Kay Sievers
be7fec4815 configure.ac: version bump 2009-07-21 01:40:47 +02:00
Kay Sievers
804ab68550 configure.ac: version bump 2009-07-08 02:02:02 +02:00
Kay Sievers
182c9b1584 build: add *exec* to the internal rootlibdir name
Automake like variables with *exec* in the directory names,
to decide, that it isn't *data*:
  http://www.gnu.org/software/hello/manual/automake/The-Two-Parts-of-Install.html#The-Two-Parts-of-Install
2009-07-05 23:56:24 +02:00
Kay Sievers
7d063096c4 configure.ac: version bump 2009-06-22 16:34:55 +02:00
Kay Sievers
c668754b71 configure.ac: version bump 2009-06-22 00:30:42 +02:00
Kay Sievers
a6c06e57a2 configure.ac: add AM_SILENT_RULES 2009-06-20 03:57:26 +02:00
Kay Sievers
95023c77fc docs: install writing_udev_rules 2009-06-19 19:33:22 +02:00
Kay Sievers
3ab2be88bd udev.pc: add 2009-06-19 19:17:18 +02:00
Kay Sievers
4b3be1c158 configure.ac: print error if gperf is missing 2009-06-17 13:31:34 +02:00
Dan Williams
181368a3b2 extras/modem-modeswitch: move from udev-extras 2009-06-17 12:16:54 +02:00
Martin Pitt
2417dc20f5 keymap: move from udev-extras 2009-06-17 11:56:52 +02:00
Kay Sievers
6133f3432f cleanup ./configure installation directory options 2009-06-17 02:25:07 +02:00
Kay Sievers
514b8d6212 configure: enable all extras by default, provide --disable-extras 2009-06-16 21:13:15 +02:00
Lennart Poettering
ccba91c746 usb-db: move from udev-extras 2009-06-16 20:57:28 +02:00
Kay Sievers
c283f81cb7 gudev: fix typo in configure option 2009-06-16 19:56:31 +02:00
Mario Limonciello
be51950dc4 hid2hci: move from udev-extras 2009-06-16 19:30:22 +02:00
Kay Sievers
c5a9680ee7 v4l_id: move from udev-extras 2009-06-16 18:41:05 +02:00
Kay Sievers
88a7923e91 INSTALL: add --enable-extras 2009-06-16 18:06:13 +02:00
David Zeuthen
bf05675a20 gudev: move from udev-extras
GObject libudev access. Initial version from Bastien Nocera, current
version by David Zeuthen.
2009-06-16 17:52:15 +02:00
Kay Sievers
af23b83ea7 udev-acl: move from udev-extras
The build of extras with larger external dependencies is wrapped in:
      --enable-extras
2009-06-16 17:43:12 +02:00
Kay Sievers
1b98ae83be libudev: move .so version to libudev Makefile 2009-06-16 14:18:16 +02:00
Kay Sievers
26812f0a13 libudev: add gtk-doc 2009-06-15 13:22:21 +02:00
Kay Sievers
045a3bc89e USE_LOG -> ENABLE_LOGGING, DEBUG -> ENABLE_DEBUG, USE_SELINUX -> WITH_SELINUX 2009-06-14 17:53:15 +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
Alan Jenkins
f503f6b22f udevd: implement a more efficient queue file format
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-21 22:22:37 +02:00
Kay Sievers
9d5bdeb3d3 version bump 2009-05-13 03:13:08 +02:00
Kay Sievers
3de63a356f delete libvolume_id 2009-05-12 13:28:01 +02:00
Kay Sievers
cb0237d7d9 build: use AC_MSG_RESULT 2009-05-01 05:09:51 +02:00
Kay Sievers
e14bdd88e9 libudev: monitor - add client socket filter for subsystem value
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-22 03:50:11 +02:00
Kay Sievers
3e5bafc98a libudev: path_encode - always return 0 if encoded string does not fit into size 2009-04-15 21:47:04 +02:00
Kay Sievers
9b144b8857 version bump 2009-04-14 21:02:39 +02:00
Kay Sievers
116254097a send monitor events back to netlink socket
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-29 04:24:39 +02:00
Kay Sievers
f454f6708a udevadm: test - handling trailing '/' in devpath
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-18 18:42:16 +01:00
Kay Sievers
b25d8cfa93 version bump 2009-03-18 17:54:00 +01:00
Kay Sievers
89d080c3ae libudev: ctrl - return error after sending ctrl message 2009-03-11 13:32:39 +01:00
Harald Hoyer
18e3d9abc3 libvolume_id: bump age
Because you added the symbol volume_id_set_uuid_sub() in commit
14e18278, you have to increase the library minor version.
2009-03-06 12:42:00 +01:00
Kay Sievers
a5d8cffad9 libudev: queue - use lstat() to check existence of symlink 2009-03-04 23:32:16 +01:00
Kay Sievers
1597517c9e volume_id: ntfs - fix uuid setting
In my scenario, the ntfs prober did *not* detect the presence of a
ntfs filesystem (i.e. vol_id --probe-all returned *only* ext3).
However, if you examine the source of the ntfs prober, it overwrites
the uuid field of the volume_id object long before it actually
decides there's a valid filesystem there - this resulted in vol_id
returning the rather bizarre combination of type=ext3, but a uuid
populated by the ntfs prober.

https://bugs.edge.launchpad.net/ubuntu/+source/udev/+bug/337015
2009-03-03 20:11:09 +01:00
Kay Sievers
cb81636a01 version bump 2009-03-03 00:55:42 +01:00
Kay Sievers
45a1dbba49 use AC_USE_SYSTEM_EXTENSIONS instead of AC_GNU_SOURCE 2009-02-26 14:17:04 +01:00
Kay Sievers
03733b04c3 add m4/ subdir 2009-02-26 14:11:43 +01:00
Kay Sievers
3d3a0a709a use the event udev_device to disable the watch on "remove" 2009-02-24 15:11:17 +01:00
Kay Sievers
58e495438b version bump 2009-02-23 21:27:03 +01:00