MCPcopy Create free account
hub / github.com/kiibohd/controller / close_usb_device

Function close_usb_device

LoadFile/teensy_loader_cli.c:462–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462void close_usb_device(IOHIDDeviceRef dev)
463{
464 struct usb_list_struct *p;
465
466 do_run_loop();
467 for (p = usb_list; p; p = p->next) {
468 if (p->ref == dev) {
469 IOHIDDeviceClose(dev, kIOHIDOptionsTypeNone);
470 return;
471 }
472 }
473}
474
475static IOHIDDeviceRef iokit_teensy_reference = NULL;
476

Callers 2

teensy_closeFunction · 0.85
hard_rebootFunction · 0.85

Calls 1

do_run_loopFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…