]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/kmod.h
Driver core: let request_module() send a /sys/modules/kmod/-uevent
[linux-2.6-omap-h63xx.git] / include / linux / kmod.h
index e4a231549407817c285bb2a6b18c78fdcd31652f..cc8e674ae27ad3b7a4414773d9bf010e7c91cde8 100644 (file)
@@ -20,7 +20,6 @@
  */
 
 #include <linux/stddef.h>
-#include <linux/config.h>
 #include <linux/errno.h>
 #include <linux/compiler.h>
 
 #ifdef CONFIG_KMOD
 /* modprobe exit status on success, -ve on error.  Return value
  * usually useless though. */
+extern void kmod_sysfs_init(void);
 extern int request_module(const char * name, ...) __attribute__ ((format (printf, 1, 2)));
 #else
+static inline void kmod_sysfs_init(void) {};
 static inline int request_module(const char * name, ...) { return -ENOSYS; }
 #endif
 
@@ -48,4 +49,8 @@ call_usermodehelper(char *path, char **argv, char **envp, int wait)
 
 extern void usermodehelper_init(void);
 
+struct file;
+extern int call_usermodehelper_pipe(char *path, char *argv[], char *envp[],
+                                   struct file **filp);
+
 #endif /* __LINUX_KMOD_H__ */