From 267a85f9ef709ccbefe5ae0ccbb306bd21921418 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 16 Sep 2021 06:42:07 +0000 Subject: implement output from vfs calls --- src/kernel/vfs/request.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/kernel/vfs/request.h') diff --git a/src/kernel/vfs/request.h b/src/kernel/vfs/request.h index aabef4f..0ad50e9 100644 --- a/src/kernel/vfs/request.h +++ b/src/kernel/vfs/request.h @@ -18,7 +18,7 @@ struct vfs_backend { // describes an in-process vfs call struct vfs_request { enum vfs_operation type; - struct { // TODO maybe this should be a separate type + struct { bool kern; // if false: use .buf ; if true: use .buf_kern union { char __user *buf; @@ -27,11 +27,7 @@ struct vfs_request { int len; } input; struct { - bool kern; // if false: use .buf ; if true: use .buf_kern - union { - char __user *buf; - char *buf_kern; - }; + char __user *buf; int len; } output; -- cgit v1.2.3