PatchworkOS
Loading...
Searching...
No Matches
mount_t Struct Reference

Mount structure. More...

#include <mount.h>

Data Fields

ref_t ref
 
mount_id_t id
 
map_entry_t mapEntry
 
superblock_tsuperblock
 The superblock of the mounted filesystem.
 
dentry_tmountpoint
 The dentry that this filesystem is mounted on, can be NULL for the root filesystem.
 
dentry_troot
 The root dentry of the mounted filesystem.
 
mount_tparent
 The parent mount, can be NULL for the root filesystem.
 

Detailed Description

Mount structure.

Mounts are owned by the VFS, not the filesystem.

Definition at line 35 of file mount.h.

Field Documentation

◆ id

mount_id_t mount_t::id

Definition at line 38 of file mount.h.

Referenced by mount_new(), namespace_bind(), namespace_mount(), and namespace_traverse_mount().

◆ mapEntry

map_entry_t mount_t::mapEntry

Definition at line 39 of file mount.h.

Referenced by mount_new(), namespace_bind(), and namespace_mount().

◆ mountpoint

dentry_t* mount_t::mountpoint

The dentry that this filesystem is mounted on, can be NULL for the root filesystem.

Definition at line 41 of file mount.h.

Referenced by mount_free(), mount_new(), path_handle_dotdot(), and path_to_name().

◆ parent

mount_t* mount_t::parent

The parent mount, can be NULL for the root filesystem.

Definition at line 43 of file mount.h.

Referenced by mount_free(), mount_new(), path_handle_dotdot(), and path_to_name().

◆ ref

ref_t mount_t::ref

Definition at line 37 of file mount.h.

Referenced by mount_new().

◆ root

◆ superblock

superblock_t* mount_t::superblock

The superblock of the mounted filesystem.

Definition at line 40 of file mount.h.

Referenced by mount_free(), mount_new(), namespace_get_root_path(), namespace_traverse_mount(), and socket_new().


The documentation for this struct was generated from the following file: