Skip to content

Commit 4c3e7fe

Browse files
committed
Adds mnt_vfc
1 parent d9b89d5 commit 4c3e7fe

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

kernel-1100/src/mount.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ pub struct Mount {
88
mtx: Mtx,
99
pad1: [u8; 0x8],
1010
entry: TailQueueEntry<Self>,
11-
pad2: [u8; 0x48],
11+
pad2: [u8; 8],
12+
fs: *mut Filesystem,
13+
pad3: [u8; 0x38],
1214
flags: u64,
1315
}
1416

@@ -25,6 +27,10 @@ impl okf::mount::Mount<Kernel> for Mount {
2527
&mut self.entry
2628
}
2729

30+
fn fs(&self) -> *mut Filesystem {
31+
self.fs
32+
}
33+
2834
unsafe fn flags(&self) -> u64 {
2935
self.flags
3036
}

src/mount/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ pub trait Mount<K: Kernel>: Sized {
1818
/// [`Kernel::MOUNTLIST_MTX`] must be locked.
1919
unsafe fn entry_mut(&mut self) -> &mut TailQueueEntry<Self>;
2020

21+
/// Returns `mnt_vfc`.
22+
fn fs(&self) -> *mut K::Filesystem;
23+
2124
/// Returns the value of `mnt_flag`.
2225
///
2326
/// # Safety

0 commit comments

Comments
 (0)