1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>rwKernel class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.2.9.1 -->
<center>
<a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> </center>
<hr><h1>rwKernel Class Reference</h1>Wrapper around kernel memory access.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="rwKernel_8hpp-source.html">rwKernel.hpp</a>></code>
<p>
<a href="classrwKernel-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classrwKernel.html#a0">rwKernel</a> ()</td></tr>
<tr><td> </td><td><font size=-1><em>Create the object with a fairly standard configuration.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classrwKernel.html#a1">rwKernel</a> (int file, int offset)</td></tr>
<tr><td> </td><td><font size=-1><em>Create a rwKernel object with the defined parameters.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classrwKernel.html#a2">~rwKernel</a> ()</td></tr>
<tr><td> </td><td><font size=-1><em>Destructor.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classrwKernel.html#a3">read</a> (unsigned char *dest, unsigned int len, unsigned int addr)</td></tr>
<tr><td> </td><td><font size=-1><em>read from kernel.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classrwKernel.html#a4">write</a> (unsigned char *src, unsigned int len, unsigned int addr)</td></tr>
<tr><td> </td><td><font size=-1><em>write to kernel.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a5" doxytag="rwKernel::read"></a>
void </td><td valign=bottom><a class="el" href="classrwKernel.html#a5">read</a> (char *a, unsigned int b, unsigned int c)</td></tr>
<tr><td> </td><td><font size=-1><em>Foo.</em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a name="a6" doxytag="rwKernel::write"></a>
void </td><td valign=bottom><a class="el" href="classrwKernel.html#a6">write</a> (char *a, unsigned int b, unsigned int c)</td></tr>
<tr><td> </td><td><font size=-1><em>Foo.</em></font><br><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Wrapper around kernel memory access.
<p>
It lets you read from and write to the kernel without taking care of offsets or file access.
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a name="a0" doxytag="rwKernel::rwKernel"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">
rwKernel::rwKernel
</td>
<td class="md">( </td>
<td class="mdname"> </td>
<td class="md">) </td>
<td class="md"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Create the object with a fairly standard configuration.
<p>
This constructor will assume that you want to use /dev/mem and a standard offset (as used by any 2.4.x and any 2.2.x kernel not defined to use more than 1GB of ram). </td>
</tr>
</table>
<a name="a1" doxytag="rwKernel::rwKernel"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">
rwKernel::rwKernel
</td>
<td class="md">( </td>
<td class="md">int </td>
<td class="mdname"> <em>file</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md"> <tr>
<td></td>
<td></td>
<td class="md">int </td>
<td class="mdname"> <em>offset</em> </td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Create a rwKernel object with the defined parameters.
<p>
<dl compact><dt>
Parameters: <dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>file
</em> </td><td>
sets the file to use. This must be either PROCKCORE (to use /proc/kcore as the memory device) or DEVMEM (to use /dev/mem as the memory device). </td></tr>
<tr><td valign=top><em>offset
</em> </td><td>
sets the offset from real memory addresses to virtual (kernel-) addresses. This is only needed if (file == DEVMEM), otherways supply IGNORE. </td></tr>
</table>
</dl> </td>
</tr>
</table>
<a name="a2" doxytag="rwKernel::~rwKernel"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">
rwKernel::~rwKernel
</td>
<td class="md">( </td>
<td class="mdname"> </td>
<td class="md">) </td>
<td class="md"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Destructor.
<p>
Will unmap the used device. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a3" doxytag="rwKernel::read"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">
void rwKernel::read
</td>
<td class="md">( </td>
<td class="md">unsigned char * </td>
<td class="mdname"> <em>dest</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md"> <tr>
<td></td>
<td></td>
<td class="md">unsigned int </td>
<td class="mdname"> <em>len</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md"> <tr>
<td></td>
<td></td>
<td class="md">unsigned int </td>
<td class="mdname"> <em>addr</em> </td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
read from kernel.
<p>
<dl compact><dt>
Parameters: <dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>dest
</em> </td><td>
read data to this address. </td></tr>
<tr><td valign=top><em>len
</em> </td><td>
amount of bytes to read. </td></tr>
<tr><td valign=top><em>addr
</em> </td><td>
read data from this address. </td></tr>
</table>
</dl> </td>
</tr>
</table>
<a name="a4" doxytag="rwKernel::write"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">
void rwKernel::write
</td>
<td class="md">( </td>
<td class="md">unsigned char * </td>
<td class="mdname"> <em>src</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md"> <tr>
<td></td>
<td></td>
<td class="md">unsigned int </td>
<td class="mdname"> <em>len</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md"> <tr>
<td></td>
<td></td>
<td class="md">unsigned int </td>
<td class="mdname"> <em>addr</em> </td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"> </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
write to kernel.
<p>
<dl compact><dt>
Parameters: <dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>src
</em> </td><td>
read data from this address. </td></tr>
<tr><td valign=top><em>len
</em> </td><td>
amount of bytes to write. </td></tr>
<tr><td valign=top><em>addr
</em> </td><td>
write data to this address. </td></tr>
</table>
</dl> </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="rwKernel_8hpp-source.html">rwKernel.hpp</a></ul>
<hr><address><small>Generated at Tue Aug 14 18:04:51 2001 for Kermit by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.2.9.1 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
© 1997-2001</small></address>
</body>
</html>
|