diff options
author | dzwdz | 2022-05-05 22:47:12 +0200 |
---|---|---|
committer | dzwdz | 2022-05-05 22:47:12 +0200 |
commit | a40063321e8fbf4d82f46471221062bfa393604a (patch) | |
tree | df4bb43830c0f94f90738d841b5caeb72922cda6 /src/kernel/vfs/mount.h | |
parent | 9900cc737988f25db30b5876f066a78e73389205 (diff) |
kernel: each driver registers its own mounts
Diffstat (limited to 'src/kernel/vfs/mount.h')
-rw-r--r-- | src/kernel/vfs/mount.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/vfs/mount.h b/src/kernel/vfs/mount.h index 4aa08d4..bcd3460 100644 --- a/src/kernel/vfs/mount.h +++ b/src/kernel/vfs/mount.h @@ -4,7 +4,7 @@ struct vfs_mount { struct vfs_mount *prev; - char *prefix; + const char *prefix; size_t prefix_len; bool prefix_owned; struct vfs_backend *backend; @@ -20,3 +20,5 @@ struct vfs_mount *vfs_mount_resolve( struct vfs_mount *top, const char *path, size_t path_len); /** Decrements the reference count, potentially freeing the mount. */ void vfs_mount_remref(struct vfs_mount *mnt); + +void vfs_mount_root_register(const char *path, struct vfs_backend *backend); |