usermode_driver.h (515B)
1#ifndef __LINUX_USERMODE_DRIVER_H__ 2#define __LINUX_USERMODE_DRIVER_H__ 3 4#include <linux/umh.h> 5#include <linux/path.h> 6 7struct 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}; 14int umd_load_blob(struct umd_info *info, const void *data, size_t len); 15int umd_unload_blob(struct umd_info *info); 16int fork_usermode_driver(struct umd_info *info); 17void umd_cleanup_helper(struct umd_info *info); 18 19#endif /* __LINUX_USERMODE_DRIVER_H__ */