1 <h2>device_write_inband
</h2>
4 <strong>Function
</strong> - Write a sequence of bytes "inband" to a device object.
7 <strong>#include<device/device.h (device_write_inband)>
</strong>
9 <strong>kern_return_t device_write_inband
</strong>
10 <strong>(mach_port_t
</strong> <var>device
</var>,
11 <strong>dev_mode_t
</strong> <var>mode
</var>,
12 <strong>recnum_t
</strong> <var>recnum
</var>,
13 <strong>io_buf_ptr_inband_t
</strong> <var>data
</var>,
14 <strong>mach_msg_type_number_t
</strong> <var>data_count
</var>,
15 <strong>io_buf_len_t
</strong> <var>io_buf_len_t
</var><strong>);
</strong>
18 <strong>#include<device/device_request.h>
</strong>
20 <strong>kern_return_t device_write_request_inband
</strong>
21 <strong>(mach_port_t
</strong> <var>device
</var>,
22 <strong>mach_port_t
</strong> <var>reply_port
</var>,
23 <strong>dev_mode_t
</strong> <var>mode
</var>,
24 <strong>recnum_t
</strong> <var>recnum
</var>,
25 <strong>io_buf_ptr_inband_t
</strong> <var>data
</var>,
26 <strong>mach_msg_type_number_t
</strong> <var>data_count
</var><strong>);
</strong>
29 <strong>kern_return_t ds_device_write_reply_inband
</strong>
30 <strong>(mach_port_t
</strong> <var>reply_port
</var>,
31 <strong>kern_return_t
</strong> <var>return_code
</var>,
32 <strong>io_buf_len_t
</strong> <var>bytes_writte
</var><strong>);
</strong>
37 <dt> <var>device
</var>
39 [in device send right]
40 A device port to the device to be written.
42 <dt> <var>reply_port
</var>
44 [in reply receive (to be converted to send-once) right]
46 which the reply message is to be sent.
51 I/O mode value. Meaningful options are:
54 <dt> <strong>D_NOWAIT
</strong>
56 Do not wait for I/O completion.
59 <dt> <var>recnum
</var>
62 Record number to be written.
66 [pointer to in array of bytes]
67 Data bytes to be written.
69 <dt> <var>data_count
</var>
72 Number of data bytes to be written.
74 <dt> <var>return_code
</var>
77 The return status code from the write.
79 <dt> <var>bytes_written
</var>
81 [out scalar, in for asynchronous form]
82 Size of data transfer.
86 The
<strong>device_write_inband
</strong> function writes a sequence of bytes to a device
87 object. The meaning of
<var>recnum
</var> as well as the specific operation
88 performed is device dependent. This call differs from
<strong>device_write
</strong>
89 in that the bytes to be written are sent "inband" in the request IPC message.
90 <h3>RETURN VALUES
</h3>
92 Only generic errors apply.
93 <h3>RELATED INFORMATION
</h3>
96 <a href=
"device_write.html"><strong>device_write
</strong></a>,
97 <a href=
"device_reply_server.html"><strong>device_reply_server
</strong></a>.