usermode_driver.h 515 B

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