chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Makefile: fix DESTDIR
[elogind.git]
/
udevd.h
diff --git
a/udevd.h
b/udevd.h
index ae1d20e5ecfd309f6679ae6610b67c9872159177..b782d7aacda5193d2201bbc38d47dc837c4d4295 100644
(file)
--- a/
udevd.h
+++ b/
udevd.h
@@
-43,16
+43,25
@@
#define THROTTLE_MAX_RUNNING_CHILDS 10
/* environment buffer, should match the kernel's size in lib/kobject_uevent.h */
#define THROTTLE_MAX_RUNNING_CHILDS 10
/* environment buffer, should match the kernel's size in lib/kobject_uevent.h */
-#define
HOTPLUG_BUFFER_SIZE
1024
-#define
HOTPLUG_NUM_ENVP
32
+#define
UEVENT_BUFFER_SIZE
1024
+#define
UEVENT_NUM_ENVP
32
-struct udevsend_msg {
- char magic[20];
- char envbuf[HOTPLUG_BUFFER_SIZE+256];
+enum udevd_msg_type {
+ UDEVD_UNKNOWN,
+ UDEVD_UEVENT,
+ UDEVD_STOP_EXEC_QUEUE,
+ UDEVD_START_EXEC_QUEUE,
};
};
-struct hotplug_msg {
- struct list_head list;
+
+struct udevd_msg {
+ char magic[32];
+ enum udevd_msg_type type;
+ char envbuf[UEVENT_BUFFER_SIZE+512];
+};
+
+struct uevent_msg {
+ struct list_head node;
pid_t pid;
long queue_time;
char *action;
pid_t pid;
long queue_time;
char *action;
@@
-60,6
+69,7
@@
struct hotplug_msg {
char *subsystem;
unsigned long long seqnum;
char *physdevpath;
char *subsystem;
unsigned long long seqnum;
char *physdevpath;
- char *envp[HOTPLUG_NUM_ENVP+1];
+ unsigned int timeout;
+ char *envp[UEVENT_NUM_ENVP+1];
char envbuf[];
};
char envbuf[];
};