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