1 <h2>device_read_async_inband
</h2>
4 <strong>System Trap
</strong> - Read a sequence of bytes "inband" from a device object.
7 <strong>kern_return_t device_read_async_inband
</strong>
8 <strong>(mach_port_t
</strong> <var>device
</var>,
9 <strong>mach_port_t
</strong> <var>queue
</var>,
10 <strong>mach_port_t
</strong> <var>request_id
</var>,
11 <strong>dev_mode_t
</strong> <var>mode
</var>,
12 <strong>recnum_t
</strong> <var>recnum
</var>,
13 <strong>io_buf_len_t
</strong> <var>bytes_wanted
</var><strong>);
</strong>
18 <dt> <var>device
</var>
20 [in device send right] A device port to the device to be read.
24 [in io_done queue send right] The port returned from
25 <strong>io_done_queue_create
</strong>.
27 <dt> <var>request_id
</var>
29 [in send right] An unique request identifier that will be passed back as
30 part of the io_done_result structure.
34 [in scalar] I/O mode value. Meaningful options are:
37 <dt> <strong>D_NOWAIT
</strong>
39 Do not wait if data is unavailable.
42 <dt> <var>recnum
</var>
44 [in scalar] Record number to be read.
46 <dt> <var>bytes_wanted
</var>
48 [in scalar] Size of data transfer.
52 The
<strong>device_read_async_inband
</strong> function enqueues a read operation for a
53 sequence of bytes from a device object. The meaning of
<var>recnum
</var> as
54 well as the specific operation performed is device dependent. This
55 call differs from
<strong>device_read_async
</strong> in that the returned bytes are
56 returned "inband" in the completion IPC message (in
57 <strong>io_done_result.qd_inline
</strong>).
58 <h3>RETURN VALUES
</h3>
60 <strong>device_read_async_inband
</strong> returns only invalid parameter errors.
61 <h3>RELATED INFORMATION
</h3>
64 <a href=
"device_read_async.html"><strong>device_read_async
</strong></a>,
65 <a href=
"DR_overwrite_async.html"><strong>device_read_overwrite_async
</strong></a>,
66 <a href=
"device_write_async.html"><strong>device_write_async
</strong></a>,
67 <a href=
"device_write_async_inband.html"><strong>device_write_async_inband
</strong></a>,
68 <a href=
"io_done_queue_create.html"><strong>io_done_queue_create
</strong></a>.