File tree Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +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 , VnodeOp } ;
12
+ use self :: vnode:: { Vnode , VnodeOp , VopUnlock } ;
13
13
use core:: ffi:: { c_char, c_int} ;
14
14
use core:: num:: NonZero ;
15
15
use okf:: fd:: OpenFlags ;
@@ -67,6 +67,7 @@ impl okf::Kernel for Kernel {
67
67
type Uio = Uio ;
68
68
type Vnode = Vnode ;
69
69
type VnodeOp = VnodeOp ;
70
+ type VopUnlock = VopUnlock ;
70
71
71
72
#[ offset( 0x419040 ) ]
72
73
unsafe fn fget (
Original file line number Diff line number Diff line change
1
+ use core:: ffi:: c_int;
2
+
1
3
/// Implementation of [`okf::vnode::Vnode`] for 11.00.
2
4
#[ repr( C ) ]
3
5
pub struct Vnode { }
@@ -9,3 +11,13 @@ impl okf::vnode::Vnode for Vnode {}
9
11
pub struct VnodeOp { }
10
12
11
13
impl okf:: vnode:: VnodeOp for VnodeOp { }
14
+
15
+ /// Implementation of [`okf::vnode::VopUnlock`] for 11.00.
16
+ #[ repr( C ) ]
17
+ pub struct VopUnlock {
18
+ desc : * mut VnodeOp ,
19
+ vp : * mut Vnode ,
20
+ flags : c_int ,
21
+ }
22
+
23
+ impl okf:: vnode:: VopUnlock for VopUnlock { }
Original file line number Diff line number Diff line change @@ -11,7 +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 , VnodeOp } ;
14
+ use self :: vnode:: { Vnode , VnodeOp , VopUnlock } ;
15
15
use core:: alloc:: { GlobalAlloc , Layout } ;
16
16
use core:: ffi:: { c_char, c_int} ;
17
17
use core:: marker:: PhantomData ;
@@ -74,6 +74,7 @@ pub trait Kernel: MappedKernel {
74
74
type Uio : Uio < Self > ;
75
75
type Vnode : Vnode ;
76
76
type VnodeOp : VnodeOp ;
77
+ type VopUnlock : VopUnlock ;
77
78
78
79
fn var < O : StaticOff > ( self , off : O ) -> O :: Ops {
79
80
let value = unsafe { self . addr ( ) . add ( off. value ( ) ) } ;
Original file line number Diff line number Diff line change 1
1
/// Represents `vnodeop_desc` structure.
2
2
pub trait VnodeOp : Sized { }
3
+
4
+ /// Represents `vop_unlock_args` structure.
5
+ pub trait VopUnlock : Sized { }
You can’t perform that action at this time.
0 commit comments