USBA_HCDI_GET_DEVICE_PRIVATE(9F)                Kernel Functions for Drivers
NAME
     usba_hcdi_get_device_private - get HCD per-device private value
SYNOPSIS
     #include <sys/usb/usba/hcdi.h>     void *     usba_hcdi_get_device_private(
usba_device_t *usb_device);
INTERFACE LEVEL
     Volatile - illumos USB HCD private function
     This is a private function that is not part of the stable DDI.  It may
     be removed or changed at any time.
PARAMETERS
     usb_device    Pointer to a USB device.
DESCRIPTION
     The 
usba_hcdi_get_device_private() function obtains the private data
     set by a HCD driver.  This private data is created by the HCD driver's
     optional entry point 
usba_hcdi_device_init(9E) and is removed during
     the HCD driver's optional entry point 
usba_hcdi_device_fini(9E).  If an
     HCD driver does not implement these entry points then the value
     obtained by a call will always be the null pointer, NULL.
     The framework provides no form of locking of this data and it is up to
     the HCD driver to use whatever synchronization primitives it requires
     if needed.
CONTEXT
     The 
usba_hcdi_get_device_private() function is generally called from
     the context of a 
usba_hcdi(9E) entry point, but may be called from
     user, kernel, or interrupt context.
RETURN VALUES
     The private data set by an HCD driver is always returned.  If no such
     value has been set, then NULL is returned.
SEE ALSO
     usba_hcdi(9E), 
usba_hcdi_device_fini(9E), 
usba_hcdi_device_init(9E)illumos                          May 7, 2016                         illumos