LDI_AREAD(9F) | Kernel Functions for Drivers | LDI_AREAD(9F) |
ldi_aread, ldi_awrite - Issue an asynchronous read or write request to a device
#include <sys/sunldi.h> int ldi_aread(ldi_handle_t lh, struct aio_req *aio_reqp, cred_t *cr);
int ldi_awrite(ldi_handle_t lh, struct aio_req *aio_reqp, cred_t *cr);
lh
cr
aio_reqp
The ldi_awrite() function passes an asynchronous write request to a device entry point specified by the layered handle. This operation is supported for block and character devices.
The ldi_aread() function passes an asynchronous read request to a device entry point specified by the layered handle. This operation is supported for block and character devices.
The ldi_awrite() and ldi_aread() functions return 0 upon success. If a failure occurs before the request is passed on to the device, the possible return values are shown below. Otherwise any other error number may be returned by the device.
EINVAL
ENOTSUP
These functions may be called from user context.
June 3, 2003 | OmniOS |