* Cherry-picked range: (kernel)
ebea31daa8..6915b62b9a
* Also merged unmerged pr:
https://github.com/tiann/KernelSU/pull/ 2909
Co-authored-by: Ylarod <me@ylarod.cn>
Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com>
Co-authored-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
Co-authored-by: u9521 <63995396+u9521@users.noreply.github.com>
Co-authored-by: Wang Han <416810799@qq.com>
16 lines
339 B
C
16 lines
339 B
C
#ifndef KSU_FILE_WRAPPER_H
|
|
#define KSU_FILE_WRAPPER_H
|
|
|
|
#include <linux/file.h>
|
|
#include <linux/fs.h>
|
|
|
|
struct ksu_file_wrapper {
|
|
struct file *orig;
|
|
struct file_operations ops;
|
|
};
|
|
|
|
struct ksu_file_wrapper *ksu_create_file_wrapper(struct file *fp);
|
|
void ksu_delete_file_wrapper(struct ksu_file_wrapper *data);
|
|
|
|
#endif // KSU_FILE_WRAPPER_H
|