Skip to content

Commit f2f01a1

Browse files
committed
Adds mount::mnt_flag
1 parent cd66532 commit f2f01a1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

kernel-1100/src/mount.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ use okf::queue::TailQueueEntry;
55
pub struct Mount {
66
pad1: [u8; 0x28],
77
entry: TailQueueEntry<Self>,
8+
pad2: [u8; 0x48],
9+
flags: u64,
810
}
911

1012
impl okf::mount::Mount for Mount {
@@ -15,4 +17,8 @@ impl okf::mount::Mount for Mount {
1517
fn entry_mut(&mut self) -> &mut TailQueueEntry<Self> {
1618
&mut self.entry
1719
}
20+
21+
fn flags(&self) -> u64 {
22+
self.flags
23+
}
1824
}

src/mount/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ pub trait Mount: Sized {
77

88
/// Returns mutable `mnt_list`.
99
fn entry_mut(&mut self) -> &mut TailQueueEntry<Self>;
10+
11+
/// Returns the value of `mnt_flag`.
12+
fn flags(&self) -> u64;
1013
}

0 commit comments

Comments
 (0)