File tree Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ use self::socket::Socket;
9
9
use self :: thread:: Thread ;
10
10
use self :: ucred:: Ucred ;
11
11
use self :: uio:: Uio ;
12
+ use self :: vnode:: Vnode ;
12
13
use core:: ffi:: { c_char, c_int} ;
13
14
use core:: num:: NonZero ;
14
15
use okf:: fd:: OpenFlags ;
@@ -27,6 +28,7 @@ mod socket;
27
28
mod thread;
28
29
mod ucred;
29
30
mod uio;
31
+ mod vnode;
30
32
31
33
/// Implementation of [`okf::Kernel`] for 11.00.
32
34
#[ derive( Clone , Copy , MappedKernel ) ]
@@ -60,6 +62,7 @@ impl okf::Kernel for Kernel {
60
62
type Thread = Thread ;
61
63
type Ucred = Ucred ;
62
64
type Uio = Uio ;
65
+ type Vnode = Vnode ;
63
66
64
67
#[ offset( 0x419040 ) ]
65
68
unsafe fn fget (
Original file line number Diff line number Diff line change
1
+ /// Implementation of [`okf::vnode::Vnode`] for 11.00.
2
+ #[ repr( C ) ]
3
+ pub struct Vnode { }
4
+
5
+ impl okf:: vnode:: Vnode for Vnode { }
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ use self::socket::{SockAddr, Socket};
11
11
use self :: thread:: Thread ;
12
12
use self :: ucred:: Ucred ;
13
13
use self :: uio:: { Uio , UioSeg } ;
14
+ use self :: vnode:: Vnode ;
14
15
use core:: alloc:: { GlobalAlloc , Layout } ;
15
16
use core:: ffi:: { c_char, c_int} ;
16
17
use core:: marker:: PhantomData ;
@@ -31,6 +32,7 @@ pub mod socket;
31
32
pub mod thread;
32
33
pub mod ucred;
33
34
pub mod uio;
35
+ pub mod vnode;
34
36
35
37
#[ cfg( fw = "1100" ) ]
36
38
#[ macro_export]
@@ -68,6 +70,7 @@ pub trait Kernel: MappedKernel {
68
70
type Thread : Thread < Self > ;
69
71
type Ucred : Ucred ;
70
72
type Uio : Uio < Self > ;
73
+ type Vnode : Vnode ;
71
74
72
75
fn var < O : StaticOff > ( self , off : O ) -> O :: Ops {
73
76
let value = unsafe { self . addr ( ) . add ( off. value ( ) ) } ;
Original file line number Diff line number Diff line change
1
+ /// Represents `vnode` structure.
2
+ pub trait Vnode : Sized { }
You can’t perform that action at this time.
0 commit comments