MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                  csxConvertSize(9F)



NAME
     csxConvertSize - convert device sizes

SYNOPSIS
     #include 



     int32t csxConvertSize(convertsizet *cs);


INTERFACE LEVEL
     Solaris DI Specific (Solaris DI)

PARAMETERS
     cs     Pointer to a convertsizet structure.


DESCRIPTION
     csxConvertSize() is a Solaris-specific extension that  pro-
     vides  a method for clients to convert from one type of dev-
     ice size representation to another, that  is,  from  devsize
     format to bytes and vice versa.

STRUCTURE MEMBERS
     The structure members of convertsizet are:

       uint32t    Attributes;
       uint32t    bytes;
       uint32t    devsize;



     The fields are defined as follows:

     Attributes     This is a bit-mapped  field  that  identifies
                    the  type of size conversion to be performed.
                    The field is defined as follows:

                    CONVERTBYTESTODEVSIZE    Converts bytes to
                                                devsize format.


                    CONVERTDEVSIZETOBYTES    Converts  devsize
                                                format to bytes.



     bytes          If CONVERTBYTESTODEVSIZE is set, the value
                    in  the bytes field is converted to a devsize
                    format and returned in the devsize field.




SunOS 5.11          Last change: 19 Jul 1996                    1






Kernel Functions for Drivers                  csxConvertSize(9F)



     devsize        If CONVERTDEVSIZETOBYTES is set, the value
                    in  the devsize field is converted to a bytes
                    value and returned in the bytes field.


RETURN VALUES
     CSUCES                  Successful operation.


     CSBADSIZE                 Invalid bytes or devsize.


     CSUNSUPORTEDFUNCTION     No PCMCIA hardware installed.


CONTEXT
     This function may be called from user or kernel context.

SEE ALSO
     csxModifyWindow(9F), csxRequestWindow(9F)


     PCard 95 Standard, PCMCIA/JEIDA
































SunOS 5.11          Last change: 19 Jul 1996                    2



OpenSolaris man pages main menu

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