summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2003-12-30 01:00:38 -0800
committerLinus Torvalds <torvalds@home.osdl.org>2003-12-30 01:00:38 -0800
commitbe907e4960755592d7960dc0bfb072a9431e5e1c (patch)
tree55d7a9383e6f671d35bc41de910cd0c074419db1 /include/linux
parent6a429be87c98decee3e4f22e218168365fe7fd19 (diff)
[PATCH] call_usermodehelper retval fix
The reworked firmware loader in the DVB patches needs the fix to the call_usermodehelper() return value. From: Rusty Russell <rusty@rustcorp.com.au> MODULE_ALIAS_BLOCK() and MODULE_ALIAS_CHAR() define aliases of form "XXX-<major>-<minor>", so we should probe for modules using this form. Unfortunately in 2.4, block aliases were "XXX-<major>" and char aliases were of both forms. Ideally, all modules would now be using MODULE_ALIAS() macros to define their aliases, and the old configuration files wouldn't matter as much. Unfortunately, this hasn't happened, so we make request_module() return the exit status of modprobe, and then do fallback when probing for char and block devices. (Kudos to Chris Wright, I stole his kernel_thread flags).
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/kmod.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kmod.h b/include/linux/kmod.h
index 8412faeea0f7..7c5af18df9d1 100644
--- a/include/linux/kmod.h
+++ b/include/linux/kmod.h
@@ -24,6 +24,8 @@
#include <linux/compiler.h>
#ifdef CONFIG_KMOD
+/* modprobe exit status on success, -ve on error. Return value
+ * usually useless though. */
extern int request_module(const char * name, ...) __attribute__ ((format (printf, 1, 2)));
#else
static inline int request_module(const char * name, ...) { return -ENOSYS; }