diff options
Diffstat (limited to 'src/kernel/include/nullfs.h')
-rw-r--r-- | src/kernel/include/nullfs.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/kernel/include/nullfs.h b/src/kernel/include/nullfs.h index 265d41b..43bad5e 100644 --- a/src/kernel/include/nullfs.h +++ b/src/kernel/include/nullfs.h @@ -9,10 +9,11 @@ typedef struct nullfs nullfs_t; typedef struct { void* (*open)(void* f, int mode, fs_handle_t *h); - size_t (*read)(void* f, size_t offset, size_t len, char* buf); - size_t (*write)(void* f, size_t offset, size_t len, const char* buf); + size_t (*read)(void* fd, size_t offset, size_t len, char* buf); + size_t (*write)(void* fd, size_t offset, size_t len, const char* buf); bool (*stat)(void* f, stat_t *st); - void (*close)(void* f); + int (*ioctl)(void* f, int command, void* data); + void (*close)(void* fd); void (*dispose)(void* f); } nullfs_node_ops_t; |