Home | History | Annotate | Download | only in libusb

Lines Matching full:_handle

860 	struct libusb_device_handle *_handle;
866 _handle = malloc(sizeof(*_handle) + priv_size);
867 if (!_handle)
870 r = pthread_mutex_init(&_handle->lock, NULL);
874 _handle->dev = libusb_ref_device(dev);
875 _handle->claimed_interfaces = 0;
876 memset(&_handle->os_priv, 0, priv_size);
878 r = usbi_backend->open(_handle);
881 free(_handle);
886 list_add(&_handle->list, &ctx->open_devs);
888 *handle = _handle;