repo: https://github.com/T-head-Semi/linux commit: b1313fe517ca3703119dcc99ef3bbf75ab42bcfb Change-Id: I6cbb35294024ea3a66140e311f4bb705fd7fd626
19 lines
467 B
C
19 lines
467 B
C
#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);
|
|
|
|
#endif /* __LINUX_USERMODE_DRIVER_H__ */
|