X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fkmod.h;h=10f505c8431dc320f46d77a88095df20cb475cb8;hb=97bf2856c6014879bd04983a3e9dfcdac1e7fe85;hp=7c5af18df9d11b504472382b902beb07026f639e;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/include/linux/kmod.h b/include/linux/kmod.h index 7c5af18df..10f505c84 100644 --- a/include/linux/kmod.h +++ b/include/linux/kmod.h @@ -19,10 +19,12 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include +#include #include #include +#define KMOD_PATH_LEN 256 + #ifdef CONFIG_KMOD /* modprobe exit status on success, -ve on error. Return value * usually useless though. */ @@ -32,10 +34,21 @@ static inline int request_module(const char * name, ...) { return -ENOSYS; } #endif #define try_then_request_module(x, mod...) ((x) ?: (request_module(mod), (x))) -extern int call_usermodehelper(char *path, char *argv[], char *envp[], int wait); -#ifdef CONFIG_HOTPLUG -extern char hotplug_path []; -#endif +struct key; +extern int call_usermodehelper_keys(char *path, char *argv[], char *envp[], + struct key *session_keyring, int wait); + +static inline int +call_usermodehelper(char *path, char **argv, char **envp, int wait) +{ + return call_usermodehelper_keys(path, argv, envp, NULL, 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__ */