vmi_os_linux/comps/
_dummy.rs1use vmi_core::{
2 Va, VmiError, VmiVa,
3 driver::VmiRead,
4 os::{
5 ThreadId, ThreadObject, VmiOsImage, VmiOsImageArchitecture, VmiOsImageSymbol, VmiOsMapped,
6 VmiOsModule, VmiOsThread, VmiOsUserModule,
7 },
8};
9
10use crate::{LinuxOs, arch::ArchAdapter};
11
12pub struct LinuxImage;
14
15impl VmiVa for LinuxImage {
16 fn va(&self) -> Va {
17 unimplemented!()
18 }
19}
20
21impl<'a, Driver> VmiOsImage<'a, Driver> for LinuxImage
22where
23 Driver: VmiRead,
24 Driver::Architecture: ArchAdapter<Driver>,
25{
26 type Os = LinuxOs<Driver>;
27
28 fn base_address(&self) -> Va {
29 unimplemented!()
30 }
31
32 fn architecture(&self) -> Result<Option<VmiOsImageArchitecture>, VmiError> {
33 unimplemented!()
34 }
35
36 fn exports(&self) -> Result<Vec<VmiOsImageSymbol>, VmiError> {
37 unimplemented!()
38 }
39}
40
41pub struct LinuxMapped;
43
44impl VmiVa for LinuxMapped {
45 fn va(&self) -> Va {
46 unimplemented!()
47 }
48}
49
50impl<Driver> VmiOsMapped<'_, Driver> for LinuxMapped
51where
52 Driver: VmiRead,
53 Driver::Architecture: ArchAdapter<Driver>,
54{
55 type Os = LinuxOs<Driver>;
56
57 fn path(&self) -> Result<Option<String>, VmiError> {
58 unimplemented!()
59 }
60}
61
62pub struct LinuxModule;
64
65impl VmiVa for LinuxModule {
66 fn va(&self) -> Va {
67 unimplemented!()
68 }
69}
70
71impl<Driver> VmiOsModule<'_, Driver> for LinuxModule
72where
73 Driver: VmiRead,
74 Driver::Architecture: ArchAdapter<Driver>,
75{
76 type Os = LinuxOs<Driver>;
77
78 fn base_address(&self) -> Result<Va, VmiError> {
79 unimplemented!()
80 }
81
82 fn size(&self) -> Result<u64, VmiError> {
83 unimplemented!()
84 }
85
86 fn name(&self) -> Result<String, VmiError> {
87 unimplemented!()
88 }
89}
90
91pub struct LinuxUserModule;
93
94impl VmiVa for LinuxUserModule {
95 fn va(&self) -> Va {
96 unimplemented!()
97 }
98}
99
100impl<Driver> VmiOsUserModule<'_, Driver> for LinuxUserModule
101where
102 Driver: VmiRead,
103 Driver::Architecture: ArchAdapter<Driver>,
104{
105 type Os = LinuxOs<Driver>;
106
107 fn base_address(&self) -> Result<Va, VmiError> {
108 unimplemented!()
109 }
110
111 fn size(&self) -> Result<u64, VmiError> {
112 unimplemented!()
113 }
114
115 fn name(&self) -> Result<String, VmiError> {
116 unimplemented!()
117 }
118}
119
120pub struct LinuxThread;
122
123impl VmiVa for LinuxThread {
124 fn va(&self) -> Va {
125 unimplemented!()
126 }
127}
128
129impl<'a, Driver> VmiOsThread<'a, Driver> for LinuxThread
130where
131 Driver: VmiRead,
132 Driver::Architecture: ArchAdapter<Driver>,
133{
134 type Os = LinuxOs<Driver>;
135
136 fn id(&self) -> Result<ThreadId, VmiError> {
137 unimplemented!()
138 }
139
140 fn object(&self) -> Result<ThreadObject, VmiError> {
141 unimplemented!()
142 }
143}