aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include/vfs.h
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-10 16:28:38 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-10 16:28:38 +0100
commit0c710141bbb9bd62617d981a3dbaed1b8775fded (patch)
tree0094294fc5b6182bada5db8e5a64cd3a52e872e2 /src/kernel/include/vfs.h
parent48c1c4dcc449d05e9950a861e165f456e0d583a1 (diff)
downloadkogata-0c710141bbb9bd62617d981a3dbaed1b8775fded.tar.gz
kogata-0c710141bbb9bd62617d981a3dbaed1b8775fded.zip
Add simple shared memory facility to IPC (no syscall yet)
Diffstat (limited to 'src/kernel/include/vfs.h')
-rw-r--r--src/kernel/include/vfs.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/kernel/include/vfs.h b/src/kernel/include/vfs.h
index c22ec9a..888c0bc 100644
--- a/src/kernel/include/vfs.h
+++ b/src/kernel/include/vfs.h
@@ -81,11 +81,11 @@ typedef struct fs_handle {
typedef struct fs_node_ops {
bool (*open)(fs_node_ptr n, int mode);
- 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);
- int (*poll)(fs_handle_t *f, void** out_wait_obj);
- void (*close)(fs_handle_t *f);
+ 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);