File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
use crate :: lock:: Mtx ;
2
2
use crate :: Kernel ;
3
+ use core:: ffi:: c_char;
3
4
use okf:: queue:: TailQueueEntry ;
4
5
5
6
/// Implementation of [`okf::mount::Mount`] for 11.00.
@@ -38,6 +39,13 @@ impl okf::mount::Mount<Kernel> for Mount {
38
39
39
40
/// Implementation of [`okf::mount::Filesystem`] for 11.00.
40
41
#[ repr( C ) ]
41
- pub struct Filesystem { }
42
+ pub struct Filesystem {
43
+ pad1 : [ u8 ; 4 ] ,
44
+ name : [ c_char ; 16 ] ,
45
+ }
42
46
43
- impl okf:: mount:: Filesystem for Filesystem { }
47
+ impl okf:: mount:: Filesystem for Filesystem {
48
+ fn name ( & self ) -> * const c_char {
49
+ self . name . as_ptr ( )
50
+ }
51
+ }
Original file line number Diff line number Diff line change 1
1
use crate :: queue:: TailQueueEntry ;
2
2
use crate :: Kernel ;
3
+ use core:: ffi:: c_char;
3
4
4
5
/// Represents `mount` structure.
5
6
pub trait Mount < K : Kernel > : Sized {
@@ -29,4 +30,7 @@ pub trait Mount<K: Kernel>: Sized {
29
30
}
30
31
31
32
/// Represents `vfsconf` structure.
32
- pub trait Filesystem : Sized { }
33
+ pub trait Filesystem : Sized {
34
+ /// Returns `vfc_name`.
35
+ fn name ( & self ) -> * const c_char ;
36
+ }
You can’t perform that action at this time.
0 commit comments