USBA_ALLOC_HCDI_OPS(9F) Kernel Functions for Drivers USBA_ALLOC_HCDI_OPS(9F)
- allocate and free USB HCD
interface operations structure
SYNOPSIS #include <sys/usb/usba/hcdi.h> usba_hcdi_ops_t * usba_alloc_hcdi_ops
); void usba_free_hcdi_ops
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.
Pointer to an allocated HCD interface operations structure.
() function allocates a usba_hcdi_ops_t(9S)
structure for use for a USB HCD driver. As part of initialization, a USB
HCD driver will allocate this and fill it in. For more information on the
full lifetime of the object and when a USB HCD driver should release the
structure, see usba_hcdi(9E)
() function release the memory associated with the usba_hcdi_ops_t(9S)
structure pointed to by ops
. Only pointers received
from a call to the usba_alloc_hcdi_ops
() function should be passed to this
These functions are generally called from kernel context during a USB HCD
entry points. While it is safe to call
this function from user context, it would be quite unusal to do so.
() function always succeeds and returns a pointer to
an allocation operations structure.
SEE ALSO usba_hcdi(9E)
OmniOS November 26, 2017 OmniOS