aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/kmod.h
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-09-30 23:29:27 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-01 00:39:33 -0700
commite239ca540594cff00adcce163dc332b27015d8e5 (patch)
tree8dfb5c0be4864d738df5a5282e56d9e57ce8261f /include/linux/kmod.h
parentd6cbd281d189977b38eac7eb2a4678de19b6b483 (diff)
downloadkernel_samsung_smdk4412-e239ca540594cff00adcce163dc332b27015d8e5.zip
kernel_samsung_smdk4412-e239ca540594cff00adcce163dc332b27015d8e5.tar.gz
kernel_samsung_smdk4412-e239ca540594cff00adcce163dc332b27015d8e5.tar.bz2
[PATCH] Create call_usermodehelper_pipe()
A new member in the ever growing family of call_usermode* functions is born. The new call_usermodehelper_pipe() function allows to pipe data to the stdin of the called user mode progam and behaves otherwise like the normal call_usermodehelp() (except that it always waits for the child to finish) Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/kmod.h')
-rw-r--r--include/linux/kmod.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/kmod.h b/include/linux/kmod.h
index 0db22a1..10f505c 100644
--- a/include/linux/kmod.h
+++ b/include/linux/kmod.h
@@ -47,4 +47,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__ */