]> 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 0db22a1ab474d94edfa5e4f79f95e3f286d7c51e..cc8e674ae27ad3b7a4414773d9bf010e7c91cde8 100644 (file)
 #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
 
@@ -47,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__ */