From 390aec5ca22e62d128e71d1dee312a2f0a82ab68 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Fri, 19 Aug 2022 19:44:36 +0200 Subject: syscall/fs_wait: return a handle for each request --- src/kernel/handle.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/kernel/handle.h') diff --git a/src/kernel/handle.h b/src/kernel/handle.h index 54ef412..6b095e5 100644 --- a/src/kernel/handle.h +++ b/src/kernel/handle.h @@ -4,6 +4,7 @@ enum handle_type; // forward declaration for proc.h #include #include +#include #include enum handle_type { @@ -11,6 +12,7 @@ enum handle_type { HANDLE_FILE, HANDLE_PIPE, HANDLE_FS_FRONT, + HANDLE_FS_REQ, }; struct handle { @@ -18,6 +20,7 @@ struct handle { struct vfs_backend *backend; // HANDLE_FILE | HANDLE_FS_FRONT void __user *file_id; // only applicable to HANDLE_FILE bool ro; /* currently only for HANDLE_FILE */ + struct vfs_request *req; /* HANDLE_FS_REQ */ struct { struct process *queued; bool write_end; -- cgit v1.2.3