MOS Source Code
|
#include "mos/filesystem/mount.h"
#include "mos/filesystem/dentry.h"
#include "mos/filesystem/vfs.h"
#include "mos/misc/setup.h"
#include <mos/lib/structures/hashmap_common.h>
#include <mos_stdlib.h>
Go to the source code of this file.
Macros | |
#define | VFS_MOUNTPOINT_MAP_SIZE 256 |
Functions | |
static void | mountpoint_map_init (void) |
MOS_INIT (PRE_VFS, mountpoint_map_init) | |
dentry_t * | dentry_root_get_mountpoint (dentry_t *dentry) |
Given a mounted root dentry, return the mountpoint dentry that points to it. | |
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 hashmap_t | vfs_mountpoint_map = { 0 } |
list_head | vfs_mountpoint_list = LIST_HEAD_INIT(vfs_mountpoint_list) |
#define VFS_MOUNTPOINT_MAP_SIZE 256 |
Definition at line 12 of file mount.c.
Referenced by mountpoint_map_init().
MOS_INIT | ( | PRE_VFS | , |
mountpoint_map_init | ) |
Given a mounted root dentry, return the mountpoint dentry that points to it.
dentry | The mounted root dentry |
Definition at line 28 of file mount.c.
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 56 of file mount.c.
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.c.
Referenced by dentry_get_mount(), dentry_mount(), dentry_unmount(), and mountpoint_map_init().
list_head vfs_mountpoint_list = LIST_HEAD_INIT(vfs_mountpoint_list) |
Definition at line 20 of file mount.c.
Referenced by dentry_mount(), and vfs_sysfs_mountpoints().