summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-05-19 22:41:31 -0400
committerIan Moffett <ian@osmora.org>2024-05-19 22:41:31 -0400
commitf9a6fc6f474ced84a78df50e2b105bd7da052d06 (patch)
tree0e5f4cd38fc3ff8b3eb981b6b8cde4e156b85673 /sys/include
parent721dfbe463db4d43ab7f2ed832694c931a4c5199 (diff)
kernel: vfs: Cleanup sys/vfs.h
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/vfs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/include/sys/vfs.h b/sys/include/sys/vfs.h
index 98c784f..f5fede8 100644
--- a/sys/include/sys/vfs.h
+++ b/sys/include/sys/vfs.h
@@ -44,13 +44,16 @@ extern struct vnode *g_root_vnode;
void vfs_init(void);
struct fs_info *vfs_byname(const char *name);
-int vfs_vget(struct vnode *parent, const char *name, struct vnode **vp);
+int vfs_vget(struct vnode *parent, const char *name, struct vnode **vp);
int vfs_path_to_node(const char *path, struct vnode **vp);
+
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, struct sio_txn *sio);
ssize_t vfs_write(struct vnode *vp, struct sio_txn *sio);
int vfs_getattr(struct vnode *vp, struct vattr *vattr);
@@ -58,5 +61,4 @@ int vfs_getattr(struct vnode *vp, struct vattr *vattr);
uint64_t sys_mount(struct syscall_args *args);
#endif /* defined(_KERNEL) */
-
#endif /* !_SYS_VFS_H_ */