X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/743b15655a24ee3fe9f458f383003e011db0558f..13fec9890cf095cc781fdf7b8917cb03bf32dd4c:/osfmk/man/device_write_async_inband.html diff --git a/osfmk/man/device_write_async_inband.html b/osfmk/man/device_write_async_inband.html index ff119ba66..28eb126f8 100755 --- a/osfmk/man/device_write_async_inband.html +++ b/osfmk/man/device_write_async_inband.html @@ -1 +1,71 @@ -

device_write_async_inband


System Trap - Write a sequence of bytes "inband" to a device object.

SYNOPSIS

kern_return_t   device_write_async_inband
                (mach_port_t                             device,
                 mach_port_t                              queue,
                 mach_port_t                         request_id,
                 dev_mode_t                                mode,
                 recnum_t                                recnum,
                 io_buf_ptr_t                              data,
                 io_buf_len_t                      bytes_wanted);

PARAMETERS

device
[in device send right] A device port to the device to be read.

queue
[in io_done queue send right] The port returned from io_done_queue_create.

request_id
[in send right] An unique request identifier that will be passed back as part of the io_done_result structure.

mode
[in scalar] I/O mode value. Meaningful options are:

D_NOWAIT
Do not wait if data is unavailable.

recnum
[in scalar] Record number to be read.

data
[pointer to in array of bytes] Data bytes to be written.

bytes_wanted
[in scalar] Size of data transfer.

DESCRIPTION

The device_write_async_inband 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 device_write_async in that the bytes to be written are sent "inband" in the request IPC message.

RETURN VALUES

device_write_async_inband returns only invalid parameter errors.

RELATED INFORMATION

Functions: device_read_async_inband, device_read_overwrite_async, device_write_async, io_done_queue_create. \ No newline at end of file +

device_write_async_inband

+
+

+System Trap - Write a sequence of bytes "inband" to a device object. +

SYNOPSIS

+
+kern_return_t   device_write_async_inband
+                (mach_port_t                             device,
+                 mach_port_t                              queue,
+                 mach_port_t                         request_id,
+                 dev_mode_t                                mode,
+                 recnum_t                                recnum,
+                 io_buf_ptr_t                              data,
+                 io_buf_len_t                      bytes_wanted);
+
+

PARAMETERS

+
+

+

device +
+[in device send right] A device port to the device to be read. +

+

queue +
+[in io_done queue send right] The port returned from +io_done_queue_create. +

+

request_id +
+[in send right] An unique request identifier that will be passed back as +part of the io_done_result structure. +

+

mode +
+[in scalar] I/O mode value. Meaningful options are: +

+

+
D_NOWAIT +
+Do not wait if data is unavailable. +
+

+

recnum +
+[in scalar] Record number to be read. +

+

data +
+[pointer to in array of bytes] Data bytes to be written. +

+

bytes_wanted +
+[in scalar] Size of data transfer. +
+

DESCRIPTION

+

+The device_write_async_inband 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 device_write_async in that the bytes to be written +are sent "inband" in the request IPC message. +

RETURN VALUES

+

+device_write_async_inband returns only invalid parameter errors. +

RELATED INFORMATION

+

+Functions: +device_read_async_inband, +device_read_overwrite_async, +device_write_async, +io_done_queue_create.