Parameters

Pointer to the uio(9S) structure. uio(9S) specifies the location of the read or write data. (Either userland or kernel.)

Description

The ldi_read() function passes a read request to the device entry point
for the device specified by the layered handle. This operation is supported
for block, character, and streams devices.

The ldi_write() function passes a write request to the device entry
point for a device specified by the layered handle. This operation is
supported for block, character, and streams devices.

Return Values

The ldi_read() and ldi_write() functions return 0 upon success. If a
failure occurs before the request is passed to the device, the
possible return values are shown below. Otherwise any other error number may
be returned by the device.