Skip to content

Commit e2d75e2

Browse files
committed
Changes vput order
1 parent c2dfb47 commit e2d75e2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

kernel-1100/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ impl okf::Kernel for Kernel {
186186
#[offset(0x37BC60)]
187187
unsafe fn vfs_unbusy(self, mp: *mut Self::Mount);
188188

189-
#[offset(0x37E9B0)]
190-
unsafe fn vput(self, vp: *mut Self::Vnode);
191-
192189
#[offset(0x1300A0)]
193190
unsafe fn vop_unlock(self, vec: *mut Self::VopVector, args: *mut Self::VopUnlock) -> c_int;
191+
192+
#[offset(0x37E9B0)]
193+
unsafe fn vput(self, vp: *mut Self::Vnode);
194194
}
195195

196196
unsafe impl Send for Kernel {}

src/lib.rs

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

242-
/// # Safety
243-
/// `vp` cannot be null and must be locked.
244-
unsafe fn vput(self, vp: *mut Self::Vnode);
245-
246242
/// # Safety
247243
/// - `vec` cannot be null.
248244
/// - `args` cannot be null.
249245
unsafe fn vop_unlock(self, vec: *mut Self::VopVector, args: *mut Self::VopUnlock) -> c_int;
246+
247+
/// # Safety
248+
/// `vp` cannot be null and must be locked.
249+
unsafe fn vput(self, vp: *mut Self::Vnode);
250250
}
251251

252252
/// Mapped PS4 kernel in the memory.

0 commit comments

Comments
 (0)