File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,9 @@ impl okf::Kernel for Kernel {
180
180
181
181
#[ offset( 0x37BC60 ) ]
182
182
unsafe fn vfs_unbusy ( self , mp : * mut Self :: Mount ) ;
183
+
184
+ #[ offset( 0x1300A0 ) ]
185
+ unsafe fn vop_unlock ( self , vec : * mut Self :: VopVector , args : * mut Self :: VopUnlock ) -> c_int ;
183
186
}
184
187
185
188
unsafe impl Send for Kernel { }
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ pub struct Vnode {
9
9
}
10
10
11
11
impl okf:: vnode:: Vnode < Kernel > for Vnode {
12
- fn ops ( & self ) -> & ' static VopVector {
13
- unsafe { & * self . ops }
12
+ fn ops ( & self ) -> * mut VopVector {
13
+ self . ops
14
14
}
15
15
}
16
16
Original file line number Diff line number Diff line change @@ -234,6 +234,11 @@ pub trait Kernel: MappedKernel {
234
234
/// # Safety
235
235
/// `mp` cannot be null.
236
236
unsafe fn vfs_unbusy ( self , mp : * mut Self :: Mount ) ;
237
+
238
+ /// # Safety
239
+ /// - `vec` cannot be null.
240
+ /// - `args` cannot be null.
241
+ unsafe fn vop_unlock ( self , vec : * mut Self :: VopVector , args : * mut Self :: VopUnlock ) -> c_int ;
237
242
}
238
243
239
244
/// Mapped PS4 kernel in the memory.
Original file line number Diff line number Diff line change 6
6
/// Represents `vnode` structure.
7
7
pub trait Vnode < K : Kernel > : Sized {
8
8
/// Returns `v_op`.
9
- fn ops ( & self ) -> & ' static K :: VopVector ;
9
+ fn ops ( & self ) -> * mut K :: VopVector ;
10
10
}
11
11
12
12
/// Represents `vop_vector` structure.
You can’t perform that action at this time.
0 commit comments