summaryrefslogtreecommitdiff
path: root/src/kernel/fd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/fd.h')
-rw-r--r--src/kernel/fd.h4
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;