pub struct LinuxVFSMount<'a, Driver>{ /* private fields */ }
Expand description
A Linux VFS mount struct.
The vfsmount
structure is used to represent a mounted filesystem instance
in the Linux Virtual Filesystem (VFS).
§Implementation Details
Corresponds to vfsmount
.
Implementations§
Source§impl<'a, Driver> LinuxVFSMount<'a, Driver>
impl<'a, Driver> LinuxVFSMount<'a, Driver>
Sourcepub fn new(vmi: VmiState<'a, Driver, LinuxOs<Driver>>, va: Va) -> Self
pub fn new(vmi: VmiState<'a, Driver, LinuxOs<Driver>>, va: Va) -> Self
Creates a new VFS mount.
Sourcepub fn mnt_root(&self) -> Result<LinuxDEntry<'a, Driver>, VmiError>
pub fn mnt_root(&self) -> Result<LinuxDEntry<'a, Driver>, VmiError>
Returns the root directory entry (dentry
) of the mount.
mnt_root
points to the root directory (/
) of the mounted filesystem.
It is a dentry
(directory entry) that represents the starting point of
the filesystem. Every mount point has a mnt_root
, but this root does
not necessarily have to be /
(e.g., for a chroot environment, the root
could be /home/user
).
§Implementation Details
Corresponds to vfsmount->mnt_root
.
Trait Implementations§
Source§impl<Driver> VmiVa for LinuxVFSMount<'_, Driver>
impl<Driver> VmiVa for LinuxVFSMount<'_, Driver>
Auto Trait Implementations§
impl<'a, Driver> Freeze for LinuxVFSMount<'a, Driver>
impl<'a, Driver> !RefUnwindSafe for LinuxVFSMount<'a, Driver>
impl<'a, Driver> !Send for LinuxVFSMount<'a, Driver>
impl<'a, Driver> !Sync for LinuxVFSMount<'a, Driver>
impl<'a, Driver> Unpin for LinuxVFSMount<'a, Driver>
impl<'a, Driver> !UnwindSafe for LinuxVFSMount<'a, Driver>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more