Skip to content

Commit 42bab58

Browse files
committed
Adds vput
1 parent edfe6b3 commit 42bab58

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

kernel-1100/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,9 @@ impl okf::Kernel for Kernel {
183183
#[offset(0x37BC60)]
184184
unsafe fn vfs_unbusy(self, mp: *mut Self::Mount);
185185

186+
#[offset(0x37E9B0)]
187+
unsafe fn vput(self, vp: *mut Self::Vnode);
188+
186189
#[offset(0x1300A0)]
187190
unsafe fn vop_unlock(self, vec: *mut Self::VopVector, args: *mut Self::VopUnlock) -> c_int;
188191
}

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ pub trait Kernel: MappedKernel {
237237
/// `mp` cannot be null.
238238
unsafe fn vfs_unbusy(self, mp: *mut Self::Mount);
239239

240+
/// # Safety
241+
/// `vp` cannot be null and must be locked.
242+
unsafe fn vput(self, vp: *mut Self::Vnode);
243+
240244
/// # Safety
241245
/// - `vec` cannot be null.
242246
/// - `args` cannot be null.

0 commit comments

Comments
 (0)