chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Patches from Harald Hoyer <harald@redhat.com>.
[elogind.git]
/
udevd.h
diff --git
a/udevd.h
b/udevd.h
index 8efe1d569c59f910e65fccf07e2bcebeff14db6e..657f684e3fb3a861d03f99cde64de1f7bb6e6476 100644
(file)
--- a/
udevd.h
+++ b/
udevd.h
@@
-25,17
+25,19
@@
#include "list.h"
#define UDEV_MAGIC "udevd_" UDEV_VERSION
#include "list.h"
#define UDEV_MAGIC "udevd_" UDEV_VERSION
-#define EVENT_TIMEOUT_SEC 5
-#define UDEVSEND_CONNECT_RETRY 20 /* x 100 millisec */
+#define EVENT_TIMEOUT_SEC 10
#define UDEVD_SOCK_PATH "udevd"
#define UDEVD_SOCK_PATH "udevd"
+#define SEND_WAIT_MAX_SECONDS 3
+#define SEND_WAIT_LOOP_PER_SECOND 10
+
struct hotplug_msg {
char magic[20];
struct list_head list;
pid_t pid;
struct hotplug_msg {
char magic[20];
struct list_head list;
pid_t pid;
-
int
seqnum;
-
time_t
queue_time;
- char action[
8
];
- char devpath[
128
];
- char subsystem[
16
];
+
unsigned long long
seqnum;
+
long
queue_time;
+ char action[
ACTION_SIZE
];
+ char devpath[
DEVPATH_SIZE
];
+ char subsystem[
SUBSYSTEM_SIZE
];
};
};