Co-authored-by: 5ec1cff <ewtqyqyewtqyqy@gmail.com> Co-authored-by: 5ec1cff <56485584+5ec1cff@users.noreply.github.com> Co-authored-by: Ylarod <me@ylarod.cn>
14 lines
337 B
C
14 lines
337 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
|