summaryrefslogtreecommitdiff
path: root/udevd.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-01-26 18:19:33 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:18 -0700
commita695feaeff0551745e1a397be2daa61b8cd0cc42 (patch)
tree9a8d9bd4b89419ab01818610aa8d297ad0a05f66 /udevd.h
parenteea34a0e9909405467185bb1e5291e6cc88fd0bc (diff)
[PATCH] udevd - cleanup and better timeout handling
Here is the next revision for udevd: o Small cleanups all over the place. o Swich to the usual linked list format "list.h". o Better timeout handling. We store a timestamp in in every queued event, so we don't wait longer than the timeout specified, if the hole in the list is not shrinking. o ignore udevd target if klibc is used
Diffstat (limited to 'udevd.h')
-rw-r--r--udevd.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/udevd.h b/udevd.h
index 43fe6b421a..c9b69bbc3c 100644
--- a/udevd.h
+++ b/udevd.h
@@ -21,17 +21,22 @@
*
*/
-#define DEFAULT_UDEV_EXEC "./udev"
-#define DEFAULT_UDEVD_EXEC "./udevd"
+#include "list.h"
-#define IPC_KEY_ID 0
-#define HOTPLUGMSGTYPE 44
+#define UDEV_EXEC "./udev"
+#define UDEVD_EXEC "./udevd"
+#define UDEVD_TIMEOUT_SECONDS 60
+#define EVENT_TIMEOUT_SECONDS 5
+
+#define IPC_KEY_ID 0
+#define HOTPLUGMSGTYPE 44
struct hotplug_msg {
long mtype;
- struct hotplug_msg *next;
+ struct list_head list;
int seqnum;
+ time_t queue_time;
char action[8];
char devpath[128];
char subsystem[16];