MOS Source Code
Loading...
Searching...
No Matches
mount.cpp File Reference
Include dependency graph for mount.cpp:

Go to the source code of this file.

Macros

#define VFS_MOUNTPOINT_MAP_SIZE   256

Functions

dentry_tdentry_root_get_mountpoint (const dentry_t *dentry)
 Given a mounted root dentry, return the mountpoint dentry that points to it.
ptr< mount_tdentry_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_tdentry_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

Macro Definition Documentation

◆ VFS_MOUNTPOINT_MAP_SIZE

#define VFS_MOUNTPOINT_MAP_SIZE   256

Definition at line 12 of file mount.cpp.

Function Documentation

◆ dentry_root_get_mountpoint()

dentry_t * dentry_root_get_mountpoint ( const dentry_t * dentry)

Given a mounted root dentry, return the mountpoint dentry that points to it.

Parameters
dentryThe mounted root dentry
Returns
dentry_t* The mountpoint 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().

Here is the call graph for this function:

◆ dentry_get_mount()

ptr< mount_t > dentry_get_mount ( const dentry_t * dentry)

Variable Documentation

◆ vfs_mountpoint_map

mos::HashMap<const dentry_t *, ptr<mount_t> > vfs_mountpoint_map
static

Definition at line 13 of file mount.cpp.

Referenced by dentry_get_mount(), dentry_mount(), and dentry_unmount().

◆ vfs_mountpoint_list

list_head vfs_mountpoint_list

Definition at line 14 of file mount.cpp.

Referenced by dentry_mount(), and vfs_sysfs_mountpoints().