forked from apple/darwin-xnu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
device_write_async_inband.html
71 lines (71 loc) · 2.48 KB
/
device_write_async_inband.html
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
<h2>device_write_async_inband</h2>
<hr>
<p>
<strong>System Trap</strong> - Write a sequence of bytes "inband" to a device object.
<h3>SYNOPSIS</h3>
<pre>
<strong>kern_return_t device_write_async_inband</strong>
<strong>(mach_port_t</strong> <var>device</var>,
<strong>mach_port_t</strong> <var>queue</var>,
<strong>mach_port_t</strong> <var>request_id</var>,
<strong>dev_mode_t</strong> <var>mode</var>,
<strong>recnum_t</strong> <var>recnum</var>,
<strong>io_buf_ptr_t</strong> <var>data</var>,
<strong>io_buf_len_t</strong> <var>bytes_wanted</var><strong>);</strong>
</pre>
<h3>PARAMETERS</h3>
<dl>
<p>
<dt> <var>device</var>
<dd>
[in device send right] A device port to the device to be read.
<p>
<dt> <var>queue</var>
<dd>
[in io_done queue send right] The port returned from
io_done_queue_create.
<p>
<dt> <var>request_id</var>
<dd>
[in send right] An unique request identifier that will be passed back as
part of the io_done_result structure.
<p>
<dt> <var>mode</var>
<dd>
[in scalar] I/O mode value. Meaningful options are:
<p>
<dl>
<dt> <strong>D_NOWAIT</strong>
<dd>
Do not wait if data is unavailable.
</dl>
<p>
<dt> <var>recnum</var>
<dd>
[in scalar] Record number to be read.
<p>
<dt> <var>data</var>
<dd>
[pointer to in array of bytes] Data bytes to be written.
<p>
<dt> <var>bytes_wanted</var>
<dd>
[in scalar] Size of data transfer.
</dl>
<h3>DESCRIPTION</h3>
<p>
The <strong>device_write_async_inband</strong> function enqueues a write operation for
a sequence of bytes to a device object. The meaning of recnum as
well as the specific operation performed is device dependent. This
call differs from <strong>device_write_async</strong> in that the bytes to be written
are sent "inband" in the request IPC message.
<h3>RETURN VALUES</h3>
<p>
<strong>device_write_async_inband</strong> returns only invalid parameter errors.
<h3>RELATED INFORMATION</h3>
<p>
Functions:
<a href="device_read_async_inband.html"><strong>device_read_async_inband</strong></a>,
<a href="DR_overwrite_async.html"><strong>device_read_overwrite_async</strong></a>,
<a href="device_write_async.html"><strong>device_write_async</strong></a>,
<a href="io_done_queue_create.html"><strong>io_done_queue_create</strong></a>.