MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Device Information Library Functions      dilnodename(3DEVINFO)



NAME
     dilnodename, dilnodedevinfo, dilnodedevt - return lib-
     devinfo lnode information

SYNOPSIS
     cc [ flag... ] file... -ldevinfo [ library... ]
     #include 

     char *dilnodename(dilnodet lnode);


     dinodet dilnodedevinfo(dilnodet lnode);


     int dilnodedevt(dilnodet lnode, devt *devt);


PARAMETERS
     lnode    A handle to an lnode.


     devt     A pointer to a devt that can be returned.


DESCRIPTION
     These functions return libdevinfo lnode information.


     The dilnodename() function returns a pointer to  the  name
     associated with lnode.


     The dilnodedevinfo() function returns a handle to the dev-
     ice node associated with lnode.


     The dilnodedevt() function sets the devt  pointed  to  by
     the devt parameter to the devt associated with lnode.

RETURN VALUES
     The dilnodename() function returns a pointer to  the  name
     associated with lnode.


     The dilnodedevinfo() function returns a handle to the dev-
     ice node associated with lnode.


     The dilnodedevt() function  returns  0  if  the  requested
     attribute exists in lnode and was returned. It returns -1 if
     the requested attribute does not exist  and  sets  errno  to
     indicate the error.



SunOS 5.11          Last change: 22 Mar 2004                    1






Device Information Library Functions      dilnodename(3DEVINFO)



ERORS
     The dilnodedevt() function will fail if:

     EINVAL    An argument was invalid.


ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Evolving                    
    
     MT-Level                     Safe                        
    


SEE ALSO
     diinit(3DEVINFO), libdevinfo(3LIB), attributes(5)
































SunOS 5.11          Last change: 22 Mar 2004                    2



OpenSolaris man pages main menu

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