1 #ifndef __LINUX_USERMODE_DRIVER_H__ 1 #ifndef __LINUX_USERMODE_DRIVER_H__ 2 #define __LINUX_USERMODE_DRIVER_H__ 2 #define __LINUX_USERMODE_DRIVER_H__ 3 3 4 #include <linux/umh.h> 4 #include <linux/umh.h> 5 #include <linux/path.h> 5 #include <linux/path.h> 6 6 7 struct umd_info { 7 struct umd_info { 8 const char *driver_name; 8 const char *driver_name; 9 struct file *pipe_to_umh; 9 struct file *pipe_to_umh; 10 struct file *pipe_from_umh; 10 struct file *pipe_from_umh; 11 struct path wd; 11 struct path wd; 12 struct pid *tgid; 12 struct pid *tgid; 13 }; 13 }; 14 int umd_load_blob(struct umd_info *info, const 14 int umd_load_blob(struct umd_info *info, const void *data, size_t len); 15 int umd_unload_blob(struct umd_info *info); 15 int umd_unload_blob(struct umd_info *info); 16 int fork_usermode_driver(struct umd_info *info 16 int fork_usermode_driver(struct umd_info *info); 17 void umd_cleanup_helper(struct umd_info *info) << 18 17 19 #endif /* __LINUX_USERMODE_DRIVER_H__ */ 18 #endif /* __LINUX_USERMODE_DRIVER_H__ */ 20 19
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.