From 30516ae9a217982ec4027cef4b7525b2a74fe3c7 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 9 Feb 2015 22:29:49 +0100 Subject: Add ioctl support in nullfs. --- src/kernel/include/nullfs.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/kernel/include/nullfs.h') 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; -- cgit v1.2.3