File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 3
3
use self :: file:: File ;
4
4
use self :: lock:: { LockObject , Mtx } ;
5
5
use self :: malloc:: Malloc ;
6
- use self :: mount:: Mount ;
6
+ use self :: mount:: { Filesystem , Mount } ;
7
7
use self :: pcpu:: Pcpu ;
8
8
use self :: socket:: Socket ;
9
9
use self :: thread:: Thread ;
@@ -46,6 +46,7 @@ impl okf::Kernel for Kernel {
46
46
const NOCPU : u32 = 0xff ;
47
47
48
48
type File = File ;
49
+ type Filesystem = Filesystem ;
49
50
type LockObject = LockObject ;
50
51
type Malloc = Malloc ;
51
52
type Mount = Mount ;
Original file line number Diff line number Diff line change @@ -29,3 +29,9 @@ impl okf::mount::Mount<Kernel> for Mount {
29
29
self . flags
30
30
}
31
31
}
32
+
33
+ /// Implementation of [`okf::mount::Filesystem`] for 11.00.
34
+ #[ repr( C ) ]
35
+ pub struct Filesystem { }
36
+
37
+ impl okf:: mount:: Filesystem for Filesystem { }
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use self::fd::OpenFlags;
4
4
use self :: file:: File ;
5
5
use self :: lock:: { LockObject , Mtx } ;
6
6
use self :: malloc:: { Malloc , MallocFlags } ;
7
- use self :: mount:: Mount ;
7
+ use self :: mount:: { Filesystem , Mount } ;
8
8
use self :: pcpu:: Pcpu ;
9
9
use self :: queue:: TailQueue ;
10
10
use self :: socket:: { SockAddr , Socket } ;
@@ -54,6 +54,7 @@ pub trait Kernel: MappedKernel {
54
54
const NOCPU : u32 ;
55
55
56
56
type File : File ;
57
+ type Filesystem : Filesystem ;
57
58
type LockObject : LockObject ;
58
59
type Malloc : Malloc ;
59
60
type Mount : Mount < Self > ;
Original file line number Diff line number Diff line change @@ -24,3 +24,6 @@ pub trait Mount<K: Kernel>: Sized {
24
24
/// [`Mount::mtx()`] must be locked.
25
25
unsafe fn flags ( & self ) -> u64 ;
26
26
}
27
+
28
+ /// Represents `vfsconf` structure.
29
+ pub trait Filesystem : Sized { }
You can’t perform that action at this time.
0 commit comments