1 #ifndef __LINUX_USERMODE_DRIVER_H__
2 #define __LINUX_USERMODE_DRIVER_H__
3 
4 #include <linux/umh.h>
5 #include <linux/path.h>
6 
7 struct umd_info {
8 	const char *driver_name;
9 	struct file *pipe_to_umh;
10 	struct file *pipe_from_umh;
11 	struct path wd;
12 	struct pid *tgid;
13 };
14 int umd_load_blob(struct umd_info *info, const void *data, size_t len);
15 int umd_unload_blob(struct umd_info *info);
16 int fork_usermode_driver(struct umd_info *info);
17 void umd_cleanup_helper(struct umd_info *info);
18 
19 #endif /* __LINUX_USERMODE_DRIVER_H__ */
20