Skip to content

Commit 2539101

Browse files
committed
Adds VOP_LOOKUP
1 parent 6ef7721 commit 2539101

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
@@ -200,6 +200,9 @@ impl okf::Kernel for Kernel {
200200
#[offset(0x37BC60)]
201201
unsafe fn vfs_unbusy(self, mp: *mut Self::Mount);
202202

203+
#[offset(0x12D870)]
204+
unsafe fn vop_lookup(self, vec: *mut Self::VopVector, args: *mut Self::VopLookup) -> c_int;
205+
203206
#[offset(0x12E7E0)]
204207
unsafe fn vop_read(self, vec: *mut Self::VopVector, args: *mut Self::VopRead) -> c_int;
205208

src/lib.rs

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

254+
/// # Safety
255+
/// - `vec` cannot be null.
256+
/// - `args` cannot be null.
257+
unsafe fn vop_lookup(self, vec: *mut Self::VopVector, args: *mut Self::VopLookup) -> c_int;
258+
254259
/// # Safety
255260
/// - `vec` cannot be null.
256261
/// - `args` cannot be null.

0 commit comments

Comments
 (0)