We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f48a5b2 commit f307415Copy full SHA for f307415
kernel-1100/src/vnode.rs
@@ -6,11 +6,16 @@ use okf::Kernel;
6
/// Implementation of [`okf::vnode::Vnode`] for 11.00.
7
#[repr(C)]
8
pub struct Vnode {
9
- pad1: [u8; 0x10],
+ ty: c_int,
10
+ pad1: [u8; 0xC],
11
ops: *mut VopVector,
12
}
13
14
impl okf::vnode::Vnode<crate::Kernel> for Vnode {
15
+ fn ty(&self) -> c_int {
16
+ self.ty
17
+ }
18
+
19
fn ops(&self) -> *mut VopVector {
20
self.ops
21
src/vnode/mod.rs
@@ -1,10 +1,14 @@
1
pub use self::op::*;
2
use crate::Kernel;
3
+use core::ffi::c_int;
4
5
mod op;
/// Represents `vnode` structure.
pub trait Vnode<K: Kernel>: Sized {
+ /// Returns `v_type`.
+ fn ty(&self) -> c_int;
/// Returns `v_op`.
fn ops(&self) -> *mut K::VopVector;
0 commit comments