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