@@ -227,23 +227,22 @@ opcode! {
227
227
}
228
228
229
229
opcode ! {
230
- /// Read from pre-mapped buffers that have been previously registered with
230
+ /// Read from a file into a fixed buffer that has been previously registered with
231
231
/// [`Submitter::register_buffers`](crate::Submitter::register_buffers).
232
232
///
233
233
/// The return values match those documented in the `preadv2(2)` man pages.
234
234
#[ derive( Debug ) ]
235
235
pub struct ReadFixed {
236
- /// The `buf_index` is an index into an array of fixed buffers,
237
- /// and is only valid if fixed buffers were registered.
238
236
fd: { impl sealed:: UseFixed } ,
239
237
buf: { * mut u8 } ,
240
238
len: { u32 } ,
241
239
buf_index: { u16 } ,
242
240
; ;
243
- offset: u64 = 0 ,
244
241
ioprio: u16 = 0 ,
245
- /// specified for read operations, contains a bitwise OR of per-I/O flags,
246
- /// as described in the `preadv2(2)` man page.
242
+ /// The offset of the file to read from.
243
+ offset: u64 = 0 ,
244
+ /// Specified for read operations, contains a bitwise OR of per-I/O flags, as described in
245
+ /// the `preadv2(2)` man page.
247
246
rw_flags: types:: RwFlags = 0
248
247
}
249
248
@@ -271,23 +270,22 @@ opcode! {
271
270
}
272
271
273
272
opcode ! {
274
- /// Write to pre-mapped buffers that have been previously registered with
273
+ /// Write to a file from a fixed buffer that have been previously registered with
275
274
/// [`Submitter::register_buffers`](crate::Submitter::register_buffers).
276
275
///
277
276
/// The return values match those documented in the `pwritev2(2)` man pages.
278
277
#[ derive( Debug ) ]
279
278
pub struct WriteFixed {
280
- /// The `buf_index` is an index into an array of fixed buffers,
281
- /// and is only valid if fixed buffers were registered.
282
279
fd: { impl sealed:: UseFixed } ,
283
280
buf: { * const u8 } ,
284
281
len: { u32 } ,
285
282
buf_index: { u16 } ,
286
283
; ;
287
284
ioprio: u16 = 0 ,
285
+ /// The offset of the file to write to.
288
286
offset: u64 = 0 ,
289
- /// specified for write operations, contains a bitwise OR of per-I/O flags,
290
- /// as described in the `preadv2 (2)` man page.
287
+ /// Specified for write operations, contains a bitwise OR of per-I/O flags, as described in
288
+ /// the `pwritev2 (2)` man page.
291
289
rw_flags: types:: RwFlags = 0
292
290
}
293
291
0 commit comments