Skip to content

Commit 5f0bb93

Browse files
committed
Adds VOP_READDIR
1 parent 86f11a5 commit 5f0bb93

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
@@ -193,6 +193,9 @@ impl okf::Kernel for Kernel {
193193
#[offset(0x12E7E0)]
194194
unsafe fn vop_read(self, vec: *mut Self::VopVector, args: *mut Self::VopRead) -> c_int;
195195

196+
#[offset(0x12FB00)]
197+
unsafe fn vop_readdir(self, vec: *mut Self::VopVector, args: *mut Self::VopReadDir) -> c_int;
198+
196199
#[offset(0x1300A0)]
197200
unsafe fn vop_unlock(self, vec: *mut Self::VopVector, args: *mut Self::VopUnlock) -> c_int;
198201

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,11 @@ pub trait Kernel: MappedKernel {
246246
/// - `args` cannot be null.
247247
unsafe fn vop_read(self, vec: *mut Self::VopVector, args: *mut Self::VopRead) -> c_int;
248248

249+
/// # Safety
250+
/// - `vec` cannot be null.
251+
/// - `args` cannot be null.
252+
unsafe fn vop_readdir(self, vec: *mut Self::VopVector, args: *mut Self::VopReadDir) -> c_int;
253+
249254
/// # Safety
250255
/// - `vec` cannot be null.
251256
/// - `args` cannot be null.

0 commit comments

Comments
 (0)