File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ impl okf::Kernel for Kernel {
36
36
const ACCEPT_MTX : StaticMut < Self :: Mtx > ;
37
37
#[ offset( 0x15415B0 ) ]
38
38
const M_TEMP : StaticMut < Self :: Malloc > ;
39
+ const MBF_MNTLSTLOCK : c_int = 2 ;
40
+ const MBF_NOWAIT : c_int = 1 ;
39
41
#[ offset( 0x1A6AD60 ) ]
40
42
const MOUNTLIST : StaticMut < TailQueue < Self :: Mount > > ;
41
43
#[ offset( 0x22D0F10 ) ]
@@ -157,6 +159,12 @@ impl okf::Kernel for Kernel {
157
159
#[ offset( 0x264620 ) ]
158
160
unsafe fn solisten ( self , so : * mut Self :: Socket , backlog : c_int , td : * mut Self :: Thread )
159
161
-> c_int ;
162
+
163
+ #[ offset( 0x37BAF0 ) ]
164
+ unsafe fn vfs_busy ( self , mp : * mut Self :: Mount , flags : c_int ) -> c_int ;
165
+
166
+ #[ offset( 0x37BC60 ) ]
167
+ unsafe fn vfs_unbusy ( self , mp : * mut Self :: Mount ) ;
160
168
}
161
169
162
170
unsafe impl Send for Kernel { }
Original file line number Diff line number Diff line change @@ -46,6 +46,8 @@ macro_rules! kernel {
46
46
pub trait Kernel : MappedKernel {
47
47
const ACCEPT_MTX : StaticMut < Self :: Mtx > ;
48
48
const M_TEMP : StaticMut < Self :: Malloc > ;
49
+ const MBF_MNTLSTLOCK : c_int ;
50
+ const MBF_NOWAIT : c_int ;
49
51
const MOUNTLIST : StaticMut < TailQueue < Self :: Mount > > ;
50
52
const MOUNTLIST_MTX : StaticMut < Self :: Mtx > ;
51
53
const NOCPU : u32 ;
@@ -210,6 +212,14 @@ pub trait Kernel: MappedKernel {
210
212
/// - `td` cannot be null.
211
213
unsafe fn solisten ( self , so : * mut Self :: Socket , backlog : c_int , td : * mut Self :: Thread )
212
214
-> c_int ;
215
+
216
+ /// # Safety
217
+ /// `mp` cannot be null.
218
+ unsafe fn vfs_busy ( self , mp : * mut Self :: Mount , flags : c_int ) -> c_int ;
219
+
220
+ /// # Safety
221
+ /// `mp` cannot be null.
222
+ unsafe fn vfs_unbusy ( self , mp : * mut Self :: Mount ) ;
213
223
}
214
224
215
225
/// Mapped PS4 kernel in the memory.
You can’t perform that action at this time.
0 commit comments