![]() |
MOS Source Code
|
#include "mos/filesystem/mount.hpp"#include "mos/filesystem/dentry.hpp"#include "mos/filesystem/vfs.hpp"#include <mos/hashmap.hpp>#include <mos/shared_ptr.hpp>#include <mos_stdlib.hpp>Go to the source code of this file.
Macros | |
| #define | VFS_MOUNTPOINT_MAP_SIZE 256 |
Functions | |
| dentry_t * | dentry_root_get_mountpoint (const dentry_t *dentry) |
| Given a mounted root dentry, return the mountpoint dentry that points to it. | |
| ptr< mount_t > | dentry_get_mount (const dentry_t *dentry) |
| bool | dentry_mount (dentry_t *mountpoint, dentry_t *root, filesystem_t *fs) |
| Mount a filesystem at a mountpoint. | |
| dentry_t * | dentry_unmount (dentry_t *root) |
| Unmount a filesystem at the mountpoint. | |
Variables | |
| static mos::HashMap< const dentry_t *, ptr< mount_t > > | vfs_mountpoint_map |
| list_head | vfs_mountpoint_list |
Given a mounted root dentry, return the mountpoint dentry that points to it.
| dentry | The mounted root dentry |
Definition at line 22 of file mount.cpp.
Referenced by dentry_path(), dentry_ref_up_to(), dentry_resolve_lastseg(), dentry_resolve_to_parent(), dentry_unmount(), and dentry_unref_one_norelease().
Definition at line 50 of file mount.cpp.
Referenced by dentry_dump_refstat(), dentry_resolve_lastseg(), dentry_resolve_to_parent(), dentry_root_get_mountpoint(), and dentry_unmount().
|
static |
Definition at line 13 of file mount.cpp.
Referenced by dentry_get_mount(), dentry_mount(), and dentry_unmount().
| list_head vfs_mountpoint_list |
Definition at line 14 of file mount.cpp.
Referenced by dentry_mount(), and vfs_sysfs_mountpoints().