feature: add devpts fd wrapper (#21)

This feature is intended to resolve devpts problem.
This commit is contained in:
5ec1cff
2025-11-06 23:29:58 +08:00
committed by ShirkNeko
parent 3662c92854
commit c876d60e53
11 changed files with 460 additions and 18 deletions

10
kernel/file_wrapper.h Normal file
View File

@@ -0,0 +1,10 @@
#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);