aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-10 17:07:08 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-10 17:07:08 +0100
commit1b9ea946b8ec8c71a2bad9a7b2ce253145dcd97c (patch)
tree6db9ebffcd557d2e06f90b004cd1c325acc7c7f2 /src/kernel/include
parent0c710141bbb9bd62617d981a3dbaed1b8775fded (diff)
downloadkogata-1b9ea946b8ec8c71a2bad9a7b2ce253145dcd97c.tar.gz
kogata-1b9ea946b8ec8c71a2bad9a7b2ce253145dcd97c.zip
Pass more information to FS driver on some ops (TODO bugcheck).
Diffstat (limited to 'src/kernel/include')
-rw-r--r--src/kernel/include/vfs.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kernel/include/vfs.h b/src/kernel/include/vfs.h
index 888c0bc..be35726 100644
--- a/src/kernel/include/vfs.h
+++ b/src/kernel/include/vfs.h
@@ -80,20 +80,20 @@ typedef struct fs_handle {
// - delete() is not expected to delete recursively : it should fail on a non-empty directory
typedef struct fs_node_ops {
- bool (*open)(fs_node_ptr n, int mode);
+ bool (*open)(fs_node_t *n, int mode);
size_t (*read)(fs_handle_t *h, size_t offset, size_t len, char* buf);
size_t (*write)(fs_handle_t *h, size_t offset, size_t len, const char* buf);
bool (*readdir)(fs_handle_t *h, size_t ent_no, dirent_t *d);
int (*poll)(fs_handle_t *h, void** out_wait_obj);
void (*close)(fs_handle_t *h);
- bool (*stat)(fs_node_ptr n, stat_t *st);
- int (*ioctl)(fs_node_ptr n, int command, void* data);
+ bool (*stat)(fs_node_t *n, stat_t *st);
+ int (*ioctl)(fs_handle_t *h, int command, void* data);
bool (*walk)(fs_node_t *n, const char* file, struct fs_node *node_d);
- bool (*delete)(fs_node_ptr n, const char* file);
- bool (*move)(fs_node_ptr n, const char* old_name, struct fs_node *new_parent, const char *new_name);
- bool (*create)(fs_node_ptr n, const char* name, int type); // create sub-node in directory
+ bool (*delete)(fs_node_t *n, const char* file);
+ bool (*move)(fs_node_t *n, const char* old_name, struct fs_node *new_parent, const char *new_name);
+ bool (*create)(fs_node_t *n, const char* name, int type); // create sub-node in directory
void (*dispose)(fs_node_t *n);
} fs_node_ops_t;