X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Flinux%2Fkmod.h;h=27501f4def78df7683aa31f5fe4ae171310fc86e;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=588f4c6ebe294f230658c98d70a878ac35da863c;hpb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;p=linux-2.6.git diff --git a/include/linux/kmod.h b/include/linux/kmod.h index 588f4c6eb..27501f4de 100644 --- a/include/linux/kmod.h +++ b/include/linux/kmod.h @@ -19,6 +19,7 @@ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include #include #include #include @@ -34,11 +35,19 @@ 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); -extern void usermodehelper_init(void); -#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); +extern int __exec_usermodehelper(char *path, char **argv, char **envp, + struct key *ring); #endif /* __LINUX_KMOD_H__ */