diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-09 22:29:49 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-09 22:29:49 +0100 |
commit | 30516ae9a217982ec4027cef4b7525b2a74fe3c7 (patch) | |
tree | 30a13a02bd2753320039b06cd0af51adad82cb4d /src/kernel/include/nullfs.h | |
parent | de27176a8164bd037b4669d1c2b8cc24a747e633 (diff) | |
download | kogata-30516ae9a217982ec4027cef4b7525b2a74fe3c7.tar.gz kogata-30516ae9a217982ec4027cef4b7525b2a74fe3c7.zip |
Add ioctl support in nullfs.
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; |