X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/9bccf70c0258c7cac2dcb80011b2a964d884c552..39236c6e673c41db228275375ab7fdb0f837b292:/osfmk/man/DR_overwrite_async.html diff --git a/osfmk/man/DR_overwrite_async.html b/osfmk/man/DR_overwrite_async.html old mode 100755 new mode 100644 index a583d9b58..de8b0814a --- a/osfmk/man/DR_overwrite_async.html +++ b/osfmk/man/DR_overwrite_async.html @@ -1 +1,71 @@ -

device_read_overwrite_async


System Trap - Read a sequence of bytes from a device object into the caller's

SYNOPSIS

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

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 the io_done_queue_create call.

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.

bytes_wanted
[in scalar] Size of data transfer.

buffer
[pointer to in array of bytes] Data buffer to be overwritten.

DESCRIPTION

The device_read_overwrite system trap enqueues a read operation for a sequence of bytes from a device object to be placed directly into the caller's address space. The meaning of recnum as well as the specific operation performed is device dependent.

RETURN VALUES

device_read_overwrite_async returns only invalid parameter errors.

RELATED INFORMATION

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

device_read_overwrite_async

+
+

+System Trap - Read a sequence of bytes from a device object into the caller's +

SYNOPSIS

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

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 the +io_done_queue_create call. +

+

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. +

+

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

+

buffer +
+[pointer to in array of bytes] Data buffer to be overwritten. +
+

DESCRIPTION

+

+The device_read_overwrite system trap enqueues a read operation for a +sequence of bytes from a device object to be placed directly into +the caller's address space. The meaning of recnum as well as the +specific operation performed is device dependent. +

RETURN VALUES

+

+device_read_overwrite_async returns only invalid parameter errors. +

RELATED INFORMATION

+

+Functions: +device_read_async, +device_read_async_inband, +device_write_async, +device_write_async_inband, +io_done_queue_create.