Skip to content

Commit 8598dc1

Browse files
committed
Adds VOP_READ
1 parent e2d75e2 commit 8598dc1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

kernel-1100/src/lib.rs

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

189+
#[offset(0x12E7E0)]
190+
unsafe fn vop_read(self, vec: *mut Self::VopVector, args: *mut Self::VopRead) -> c_int;
191+
189192
#[offset(0x1300A0)]
190193
unsafe fn vop_unlock(self, vec: *mut Self::VopVector, args: *mut Self::VopUnlock) -> c_int;
191194

src/lib.rs

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

242+
/// # Safety
243+
/// - `vec` cannot be null.
244+
/// - `args` cannot be null.
245+
unsafe fn vop_read(self, vec: *mut Self::VopVector, args: *mut Self::VopRead) -> c_int;
246+
242247
/// # Safety
243248
/// - `vec` cannot be null.
244249
/// - `args` cannot be null.

0 commit comments

Comments
 (0)