MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                        ldiaread(9F)



NAME
     ldiaread, ldiawrite - Issue an asynchronous read or  write
     request to a device

SYNOPSIS
     #include 

     int ldiaread(ldihandlet lh,  struct aioreq *aioreqp, credt *cr);


     int  ldiawrite(ldihandlet lh,  struct aioreq *aioreqp, credt *cr);


PARAMETERS
     lh           Layered handle.


     cr           Pointer to a credential structure.


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


DESCRIPTION
     The  ldiawrite()  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 ldiaread() 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 ldiawrite() and ldiaread()  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 dev-
     ice.

     EINVAL     Invalid input parameters.


     ENOTSUP    Operation is not supported for this device.


CONTEXT
     These functions may be called from user context.




SunOS 5.11          Last change: 3 June 2003                    1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™