2020-06-26 17:23:00 +00:00
|
|
|
#ifndef __LINUX_USERMODE_DRIVER_H__
|
|
|
|
#define __LINUX_USERMODE_DRIVER_H__
|
|
|
|
|
|
|
|
#include <linux/umh.h>
|
2020-06-25 18:12:59 +00:00
|
|
|
#include <linux/path.h>
|
2020-06-26 17:23:00 +00:00
|
|
|
|
2020-06-26 16:16:06 +00:00
|
|
|
struct umd_info {
|
2020-06-25 16:38:08 +00:00
|
|
|
const char *driver_name;
|
2020-06-26 17:23:00 +00:00
|
|
|
struct file *pipe_to_umh;
|
|
|
|
struct file *pipe_from_umh;
|
2020-06-25 18:12:59 +00:00
|
|
|
struct path wd;
|
2020-06-25 21:48:26 +00:00
|
|
|
struct pid *tgid;
|
2020-06-26 17:23:00 +00:00
|
|
|
};
|
2020-06-25 18:12:59 +00:00
|
|
|
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);
|
2020-06-26 17:23:00 +00:00
|
|
|
|
|
|
|
#endif /* __LINUX_USERMODE_DRIVER_H__ */
|