ldi_awrite man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

LDI_AREAD(9F)							 LDI_AREAD(9F)

NAME
       ldi_aread,  ldi_awrite - Issue an asynchronous read or write request to
       a device

SYNOPSIS
       #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);

PARAMETERS
       lh
		    Layered handle.

       cr
		    Pointer to a credential structure.

       aio_reqp
		    Pointer to the aio_req(9S) structure that describes	 where
		    the data is to be stored or obtained from.

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

RETURN VALUES
       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  pos‐
       sible  return  values are shown below. Otherwise any other error number
       may be returned by the device.

       EINVAL
		  Invalid input parameters.

       ENOTSUP
		  Operation is not supported for this device.

CONTEXT
       These functions may be called from user context.

				  Jun 3, 2003			 LDI_AREAD(9F)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net