MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                     usbgetaddr(9F)



NAME
     usbgetaddr - Retrieve device USB address

SYNOPSIS
     #include 

     int usbgetaddr(devinfot *dip);


INTERFACE LEVEL
     Solaris DI specific (Solaris DI)

PARAMETERS
     dip    Pointer to the device's devinfo structure.


DESCRIPTION
     The usbgetaddr() function  returns  the  current  USB  bus
     address  for  debugging   purposes.  The returned address is
     unique for a specific USB bus, and may be replicated if mul-
     tiple host controller instances are present on the system.

RETURN VALUES
     On success: USB device address.


     On failure: returns 0. Fails if dip is NUL.

CONTEXT
     May be called from user, kernel or interrupt context.

EXAMPLES
       int usbaddr;

       usbaddr = usbgetaddr(dip);


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















SunOS 5.11           Last change: Feb 9 2004                    1






Kernel Functions for Drivers                     usbgetaddr(9F)



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Architecture                 PCI-based systems           
    
     Interface stability          Committed                   
    
     Availability                 SUNWusb                     
    


SEE ALSO
     attributes(5), usbpipeopen(9F)










































SunOS 5.11           Last change: Feb 9 2004                    2



OpenSolaris man pages main menu

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