2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2016 Joyent, Inc.
15 .Dt USBA_ALLOC_HCDI_OPS 9F
18 .Nm usba_alloc_hcdi_ops ,
19 .Nm usba_free_hcdi_ops
20 .Nd allocate and free USB HCD interface operations structure
22 .In sys/usb/usba/hcdi.h
23 .Ft "usba_hcdi_ops_t *"
24 .Fo usba_alloc_hcdi_ops
28 .Fo usba_free_hcdi_ops
29 .Fa "usba_hcdi_ops_t *ops"
33 illumos USB HCD private function
35 This is a private function that is not part of the stable DDI.
36 It may be removed or changed at any time.
40 Pointer to an allocated HCD interface operations structure.
44 .Fn usba_alloc_hcdi_ops
46 .Xr usba_hcdi_ops_t 9S
47 structure for use for a USB HCD driver.
48 As part of initialization, a USB HCD driver will allocate this and fill it in.
49 For more information on the full lifetime of the object and when a USB HCD
50 driver should release the structure, see
54 .Fn usba_free_hcdi_ops
55 function release the memory associated with the
56 .Xr usba_hcdi_ops_t 9S
57 structure pointed to by
59 Only pointers received from a call to the
60 .Fn usba_alloc_hcdi_ops
61 function should be passed to this function.
63 These functions are generally called from kernel context during a USB
69 While it is safe to call this function from user context, it would be quite
73 .Fn usba_alloc_hcdi_ops
74 function always succeeds and returns a pointer to an allocation
78 .Xr usba_hcdi_ops_t 9S