summaryrefslogtreecommitdiff
path: root/udev.h
diff options
context:
space:
mode:
authortrini@kernel.crashing.org <trini@kernel.crashing.org>2004-08-10 00:50:21 -0700
committerGreg KH <gregkh@suse.de>2005-04-26 21:36:59 -0700
commiteb6c7cd03635ffc28798734f0b87b9e21dae6f9e (patch)
tree0bd2587399783c7fa82439772ae114bda931bb44 /udev.h
parent807755776d294a9811c0c8e835538e83abf734bc (diff)
[PATCH] Make udev/udevstart be one binary
Hi, The following patch makes udev/udevstart be a common binary. First, doing this grows udev by a total of 1.8kB (ppc32, stripped) whereas udevstart by itself is 6.4kB. I know you mentioned being able to replace udevstart with a script, but at 1.8kB I don't think it'll be easy to beat this with size there. Next, the following are by-eye timings of before, after, and with devfs on a slow, but still usable embedded platform (config stripped down to more-or-less bare for ramdisk): -- Embedded Planet RPX LITE, 64Mhz MPC 823e -- devfs : 15.333s, 15.253s, 14.988s (15.191s avg) udev-pristine : 18.675s, 18.079s, 18.418s (18.390s avg) udev-multi : 14.587s, 14.747s, 14.868s (14.734s avg) The patch ends up being rather large to add this, as in doing so I ended up making all refs (that I hit..) to devpath/subsystem be marked as 'const'. Signed-off-by: Tom Rini <trini@kernel.crashing.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'udev.h')
-rw-r--r--udev.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/udev.h b/udev.h
index da02e26bba..310154f55d 100644
--- a/udev.h
+++ b/udev.h
@@ -61,11 +61,15 @@ struct udevice {
char kernel_name[NAME_SIZE];
};
-extern int udev_add_device(char *path, char *subsystem, int fake);
-extern int udev_remove_device(char *path, char *subsystem);
+extern int udev_add_device(const char *path, const char *subsystem, int fake);
+extern int udev_remove_device(const char *path, const char *subsystem);
extern void udev_init_config(void);
+extern int udev_start(void);
+extern int __udev_hotplug(char *action, const char *devpath,
+ const char *subsystem);
extern int parse_get_pair(char **orig_string, char **left, char **right);
-extern void dev_d_send(struct udevice *dev, char *subsystem, char *devpath);
+extern void dev_d_send(struct udevice *dev, const char *subsystem,
+ const char *devpath);
extern char **main_argv;
extern char **main_envp;