aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/vfs.h3
-rw-r--r--sys/include/sys/vnode.h5
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/include/sys/vfs.h b/sys/include/sys/vfs.h
index e219cf7..b454d39 100644
--- a/sys/include/sys/vfs.h
+++ b/sys/include/sys/vfs.h
@@ -33,6 +33,7 @@
#include <sys/mount.h>
#include <sys/vnode.h>
#include <sys/types.h>
+#include <sys/sio.h>
/* Max path length */
#define PATH_MAX 1024
@@ -50,7 +51,7 @@ char *vfs_get_fname_at(const char *path, size_t idx);
int vfs_rootname(const char *path, char **new_path);
bool vfs_is_valid_path(const char *path);
ssize_t vfs_hash_path(const char *path);
-ssize_t vfs_read(struct vnode *vp, char *buf, size_t count);
+ssize_t vfs_read(struct vnode *vp, struct sio_txn *sio);
#endif /* defined(_KERNEL) */
diff --git a/sys/include/sys/vnode.h b/sys/include/sys/vnode.h
index 11bbf99..0352312 100644
--- a/sys/include/sys/vnode.h
+++ b/sys/include/sys/vnode.h
@@ -33,13 +33,14 @@
#include <sys/types.h>
#include <sys/queue.h>
#include <sys/mount.h>
+#include <sys/sio.h>
struct vnode;
struct vops {
int(*vget)(struct vnode *parent, const char *name, struct vnode **vp);
- int(*read)(struct vnode *vp, char *buf, size_t count);
- int(*write)(struct vnode *vp, const char *buf, size_t count);
+ int(*read)(struct vnode *vp, struct sio_txn *sio);
+ int(*write)(struct vnode *vp, struct sio_txn *sio);
};
struct vnode {