diff options
author | dzwdz | 2021-08-25 12:58:27 +0200 |
---|---|---|
committer | dzwdz | 2021-08-25 12:58:27 +0200 |
commit | 3ac131ea956fd62df966bac75e8d7f0c0434d68d (patch) | |
tree | a91f3242a5f7b29b587aa9064cc10aa060083ae5 /src/kernel/fd.h | |
parent | 75fc5c8f30b0a5dd5837df35948fc92861f30552 (diff) |
implement FDOP_MOUNT
Diffstat (limited to 'src/kernel/fd.h')
-rw-r--r-- | src/kernel/fd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/fd.h b/src/kernel/fd.h index b35c979..bcc9902 100644 --- a/src/kernel/fd.h +++ b/src/kernel/fd.h @@ -17,6 +17,7 @@ struct fd { enum fdop { // describes the operations which can be done on file descriptors + FDOP_MOUNT, // also closes the original fd FDOP_READ, FDOP_WRITE, FDOP_CLOSE, @@ -26,6 +27,9 @@ struct fdop_args { enum fdop type; struct fd *fd; union { + struct { // FDOP_MOUNT + struct mount *target; + } mnt; struct { // FDOP_READ, FDOP_WRITE user_ptr ptr; size_t len; |