summaryrefslogtreecommitdiff
path: root/src/kernel/vfs/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/vfs/root.c')
-rw-r--r--src/kernel/vfs/root.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/kernel/vfs/root.c b/src/kernel/vfs/root.c
index 989c77e..8ba2043 100644
--- a/src/kernel/vfs/root.c
+++ b/src/kernel/vfs/root.c
@@ -130,7 +130,7 @@ static int handle(struct vfs_request *req, bool *ready) {
}
}
-void vfs_root_accept(struct vfs_request *req) {
+static void accept(struct vfs_request *req) {
if (req->caller) {
bool ready = true;
int ret = handle(req, &ready);
@@ -142,6 +142,9 @@ void vfs_root_accept(struct vfs_request *req) {
}
}
-bool vfs_root_ready(struct vfs_backend *self) {
+static bool is_ready(struct vfs_backend *self) {
return true;
}
+
+static struct vfs_backend backend = BACKEND_KERN(is_ready, accept);
+void vfs_root_init(void) { vfs_mount_root_register("", &backend); }