From 845fff4dad1159d3d5b94efaf8e547af8d280a5e Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 8 Mar 2015 13:57:35 +0100 Subject: Change prototypes for read, write, readdir, close ; implement blocking IPC. --- src/kernel/include/vfs.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/kernel/include/vfs.h') diff --git a/src/kernel/include/vfs.h b/src/kernel/include/vfs.h index 90944b2..371ffb7 100644 --- a/src/kernel/include/vfs.h +++ b/src/kernel/include/vfs.h @@ -83,10 +83,10 @@ typedef struct fs_handle { typedef struct fs_node_ops { bool (*open)(fs_node_ptr n, int mode); - size_t (*read)(fs_node_ptr f, size_t offset, size_t len, char* buf); - size_t (*write)(fs_node_ptr f, size_t offset, size_t len, const char* buf); - bool (*readdir)(fs_node_ptr f, size_t ent_no, dirent_t *d); - void (*close)(fs_node_ptr f); + size_t (*read)(fs_handle_t *f, size_t offset, size_t len, char* buf); + size_t (*write)(fs_handle_t *f, size_t offset, size_t len, const char* buf); + bool (*readdir)(fs_handle_t *f, size_t ent_no, dirent_t *d); + void (*close)(fs_handle_t *f); bool (*stat)(fs_node_ptr n, stat_t *st); int (*ioctl)(fs_node_ptr f, int command, void* data); -- cgit v1.2.3