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_HCDI_GET_DEVICE_PRIVATE 9F
18 .Nm usba_hcdi_get_device_private
19 .Nd get HCD per-device private value
21 .In sys/usb/usba/hcdi.h
23 .Fo usba_hcdi_get_device_private
24 .Fa "usba_device_t *usb_device"
28 illumos USB HCD private function
30 This is a private function that is not part of the stable DDI.
31 It may be removed or changed at any time.
35 Pointer to a USB device.
39 .Fn usba_hcdi_get_device_private
40 function obtains the private data set by a HCD driver.
41 This private data is created by the HCD driver's optional entry point
42 .Xr usba_hcdi_device_init 9E
43 and is removed during the HCD driver's optional entry point
44 .Xr usba_hcdi_device_fini 9E .
45 If an HCD driver does not implement these entry points then the value
46 obtained by a call will always be the null pointer,
49 The framework provides no form of locking of this data and it is up to
50 the HCD driver to use whatever synchronization primitives it requires if
54 .Fn usba_hcdi_get_device_private
55 function is generally called from the context of a
57 entry point, but may be called from user, kernel, or interrupt context.
59 The private data set by an HCD driver is always returned.
60 If no such value has been set, then
65 .Xr usba_hcdi_device_fini 9E ,
66 .Xr usba_hcdi_device_init 9E