summaryrefslogtreecommitdiff
path: root/src/kernel/handle.h
diff options
context:
space:
mode:
authordzwdz2022-10-08 20:28:19 +0200
committerdzwdz2022-10-08 23:45:20 +0200
commitb3f0606f7d206f355647f5c266aadea137e93429 (patch)
tree3b7b0c54d6e7d13d84bdb8c5c8ae89a5c8e1043a /src/kernel/handle.h
parent06affde06e2b1d3fe9c7c3fa60f5662e9957534d (diff)
kernel/handle: reuse ->writeable/->readable for pipes
Diffstat (limited to 'src/kernel/handle.h')
-rw-r--r--src/kernel/handle.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kernel/handle.h b/src/kernel/handle.h
index 3c16061..19d5953 100644
--- a/src/kernel/handle.h
+++ b/src/kernel/handle.h
@@ -19,12 +19,10 @@ struct handle {
enum handle_type type;
struct vfs_backend *backend; // HANDLE_FILE | HANDLE_FS_FRONT
void __user *file_id; // only applicable to HANDLE_FILE
- // TODO readable/writeable could be reused for pipes
- bool readable, writeable; /* currently only for HANDLE_FILE */
+ bool readable, writeable; /* HANDLE_FILE | HANDLE_PIPE */
struct vfs_request *req; /* HANDLE_FS_REQ */
struct {
struct process *queued;
- bool write_end;
struct handle *sister; // the other end, not included in refcount
} pipe;