-<h2>device_write_inband</h2>\r<hr>\r<p>\r<strong>Function</strong> - Write a sequence of bytes "inband" to a device object.\r<h3>SYNOPSIS</h3>\r<pre>\r<strong>#include<device/device.h (device_write_inband)></strong>\r\r<strong>kern_return_t device_write_inband</strong>\r <strong>(mach_port_t</strong> <var>device</var>,\r <strong>dev_mode_t</strong> <var>mode</var>,\r <strong>recnum_t</strong> <var>recnum</var>,\r <strong>io_buf_ptr_inband_t</strong> <var>data</var>,\r <strong>mach_msg_type_number_t</strong> <var>data_count</var>,\r <strong>io_buf_len_t</strong> <var>io_buf_len_t</var><strong>);</strong>\r\r\r<strong>#include<device/device_request.h></strong>\r\r<strong>kern_return_t device_write_request_inband</strong>\r <strong>(mach_port_t</strong> <var>device</var>,\r <strong>mach_port_t</strong> <var>reply_port</var>,\r <strong>dev_mode_t</strong> <var>mode</var>,\r <strong>recnum_t</strong> <var>recnum</var>,\r <strong>io_buf_ptr_inband_t</strong> <var>data</var>,\r <strong>mach_msg_type_number_t</strong> <var>data_count</var><strong>);</strong>\r\r\r<strong>kern_return_t ds_device_write_reply_inband</strong>\r <strong>(mach_port_t</strong> <var>reply_port</var>,\r <strong>kern_return_t</strong> <var>return_code</var>,\r <strong>io_buf_len_t</strong> <var>bytes_writte</var><strong>);</strong>\r</pre>\r<h3>PARAMETERS</h3>\r<dl>\r<p>\r<dt> <var>device</var> \r<dd>\r[in device send right]\rA device port to the device to be written.\r<p>\r<dt> <var>reply_port</var> \r<dd>\r[in reply receive (to be converted to send-once) right]\rThe port to \rwhich the reply message is to be sent.\r<p>\r<dt> <var>mode</var> \r<dd>\r[in scalar]\rI/O mode value. Meaningful options are:\r<dl>\r<p>\r<dt> <strong>D_NOWAIT</strong>\r<dd>\rDo not wait for I/O completion.\r</dl>\r<p>\r<dt> <var>recnum</var> \r<dd>\r[in scalar]\rRecord number to be written.\r<p>\r<dt> <var>data</var> \r<dd>\r[pointer to in array of bytes]\rData bytes to be written.\r<p>\r<dt> <var>data_count</var> \r<dd>\r[in scalar]\rNumber of data bytes to be written.\r<p>\r<dt> <var>return_code</var> \r<dd>\r[in scalar]\rThe return status code from the write.\r<p>\r<dt> <var>bytes_written</var> \r<dd>\r[out scalar, in for asynchronous form]\rSize of data transfer.\r</dl>\r<h3>DESCRIPTION</h3>\r<p>\rThe <strong>device_write_inband</strong> function writes a sequence of bytes to a device\robject. The meaning of <var>recnum</var> as well as the specific operation \rperformed is device dependent. This call differs from <strong>device_write</strong>\rin that the bytes to be written are sent "inband" in the request IPC message.\r<h3>RETURN VALUES</h3>\r<p>\rOnly generic errors apply.\r<h3>RELATED INFORMATION</h3>\r<p>\rFunctions:\r<a href="device_write.html"><strong>device_write</strong></a>,\r<a href="device_reply_server.html"><strong>device_reply_server</strong></a>.\r
\ No newline at end of file
+<h2>device_write_inband</h2>
+<hr>
+<p>
+<strong>Function</strong> - Write a sequence of bytes "inband" to a device object.
+<h3>SYNOPSIS</h3>
+<pre>
+<strong>#include<device/device.h (device_write_inband)></strong>
+
+<strong>kern_return_t device_write_inband</strong>
+ <strong>(mach_port_t</strong> <var>device</var>,
+ <strong>dev_mode_t</strong> <var>mode</var>,
+ <strong>recnum_t</strong> <var>recnum</var>,
+ <strong>io_buf_ptr_inband_t</strong> <var>data</var>,
+ <strong>mach_msg_type_number_t</strong> <var>data_count</var>,
+ <strong>io_buf_len_t</strong> <var>io_buf_len_t</var><strong>);</strong>
+
+
+<strong>#include<device/device_request.h></strong>
+
+<strong>kern_return_t device_write_request_inband</strong>
+ <strong>(mach_port_t</strong> <var>device</var>,
+ <strong>mach_port_t</strong> <var>reply_port</var>,
+ <strong>dev_mode_t</strong> <var>mode</var>,
+ <strong>recnum_t</strong> <var>recnum</var>,
+ <strong>io_buf_ptr_inband_t</strong> <var>data</var>,
+ <strong>mach_msg_type_number_t</strong> <var>data_count</var><strong>);</strong>
+
+
+<strong>kern_return_t ds_device_write_reply_inband</strong>
+ <strong>(mach_port_t</strong> <var>reply_port</var>,
+ <strong>kern_return_t</strong> <var>return_code</var>,
+ <strong>io_buf_len_t</strong> <var>bytes_writte</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 written.
+<p>
+<dt> <var>reply_port</var>
+<dd>
+[in reply receive (to be converted to send-once) right]
+The port to
+which the reply message is to be sent.
+<p>
+<dt> <var>mode</var>
+<dd>
+[in scalar]
+I/O mode value. Meaningful options are:
+<dl>
+<p>
+<dt> <strong>D_NOWAIT</strong>
+<dd>
+Do not wait for I/O completion.
+</dl>
+<p>
+<dt> <var>recnum</var>
+<dd>
+[in scalar]
+Record number to be written.
+<p>
+<dt> <var>data</var>
+<dd>
+[pointer to in array of bytes]
+Data bytes to be written.
+<p>
+<dt> <var>data_count</var>
+<dd>
+[in scalar]
+Number of data bytes to be written.
+<p>
+<dt> <var>return_code</var>
+<dd>
+[in scalar]
+The return status code from the write.
+<p>
+<dt> <var>bytes_written</var>
+<dd>
+[out scalar, in for asynchronous form]
+Size of data transfer.
+</dl>
+<h3>DESCRIPTION</h3>
+<p>
+The <strong>device_write_inband</strong> function writes a sequence of bytes to a device
+object. The meaning of <var>recnum</var> as well as the specific operation
+performed is device dependent. This call differs from <strong>device_write</strong>
+in that the bytes to be written are sent "inband" in the request IPC message.
+<h3>RETURN VALUES</h3>
+<p>
+Only generic errors apply.
+<h3>RELATED INFORMATION</h3>
+<p>
+Functions:
+<a href="device_write.html"><strong>device_write</strong></a>,
+<a href="device_reply_server.html"><strong>device_reply_server</strong></a>.