summaryrefslogtreecommitdiff
path: root/kernel/include
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-04-04 12:35:22 -0400
committerFreya Murphy <freya@freyacat.org>2025-04-04 12:35:22 -0400
commita86b7eaf9e9755fe5a564ee96423b8061c500940 (patch)
treef0af3f28016574e8d90aa82f1ca545580507915d /kernel/include
parentfix fs vtable (diff)
downloadcomus-a86b7eaf9e9755fe5a564ee96423b8061c500940.tar.gz
comus-a86b7eaf9e9755fe5a564ee96423b8061c500940.tar.bz2
comus-a86b7eaf9e9755fe5a564ee96423b8061c500940.zip
fs doesnt need close
Diffstat (limited to 'kernel/include')
-rw-r--r--kernel/include/comus/fs.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/include/comus/fs.h b/kernel/include/comus/fs.h
index ba5bd4d..a3ff6fa 100644
--- a/kernel/include/comus/fs.h
+++ b/kernel/include/comus/fs.h
@@ -66,8 +66,6 @@ struct file {
struct file_s *parent;
/// type of the file
enum file_type type;
- /// current offset into file
- uint64_t offset;
/// the filesystem of this file
struct file_system *fsys;
};
@@ -152,11 +150,6 @@ struct file_system {
/// @returns number of bytes written, or an negative fs error code on failure
int (*fs_write_file)(struct file_system *fs, struct file *file,
size_t offset, size_t length, uint8_t *buffer);
- /// close a file in the filesystem
- /// @param fs - the file system
- /// @param file - the file to close
- /// @returns 0 on success, or an negative fs error coude on failure
- int (*fs_close_file)(struct file_system *fs, struct file *file);
};
// list of all disks on the system