Lines Matching full:_handle
945 struct libusb_device_handle *_handle;
950 _handle = malloc(sizeof(*_handle) + priv_size);
951 if (!_handle)
954 r = usbi_mutex_init(&_handle->lock, NULL);
956 free(_handle);
960 _handle->dev = libusb_ref_device(dev);
961 _handle->claimed_interfaces = 0;
962 memset(&_handle->os_priv, 0, priv_size);
964 r = usbi_backend->open(_handle);
968 usbi_mutex_destroy(&_handle->lock);
969 free(_handle);
974 list_add(&_handle->list, &ctx->open_devs);
976 *handle = _handle;