Files
SukiSU-Ultra/kernel/file_wrapper.h
Faris 76ca0050a7 kernel: Add header guard and support Official KernelSU fd wrapper
* Based on unmerged pull-request
https://github.com/tiann/KernelSU/pull/ 2285

Co-authored-by: Ylarod <me@ylarod.cn>
Signed-off-by: Faris <rissu.ntk@gmail.com>
2025-11-08 21:49:47 +08:00

16 lines
323 B
C

#ifndef __KSU_H_FILE_WRAPPER
#define __KSU_H_FILE_WRAPPER
#include <linux/file.h>
#include <linux/fs.h>
struct ksu_file_wrapper {
struct file *orig;
struct file_operations ops;
};
struct ksu_file_wrapper *mksu_create_file_wrapper(struct file *fp);
void mksu_delete_file_wrapper(struct ksu_file_wrapper *data);
#endif