Changes in uspace/lib/usbvirt/src/device.c [5a6cc679:a35b458] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbvirt/src/device.c
r5a6cc679 ra35b458 86 86 if (DEV != NULL) 87 87 return ELIMIT; 88 88 89 89 devman_handle_t handle; 90 90 errno_t rc = devman_fun_get_handle(vhc_path, &handle, 0); 91 91 if (rc != EOK) 92 92 return rc; 93 93 94 94 async_sess_t *hcd_sess = 95 95 devman_device_connect(handle, 0); 96 96 if (!hcd_sess) 97 97 return ENOMEM; 98 98 99 99 DEV = dev; 100 100 dev->vhc_sess = hcd_sess; 101 101 102 102 async_exch_t *exch = async_exchange_begin(hcd_sess); 103 103 104 104 port_id_t port; 105 105 rc = async_create_callback_port(exch, INTERFACE_USBVIRT_CB, 0, 0, 106 106 callback_connection, NULL, &port); 107 107 108 108 async_exchange_end(exch); 109 109 110 110 if (rc != EOK) 111 111 DEV = NULL; 112 112 113 113 return rc; 114 114 }
Note:
See TracChangeset
for help on using the changeset viewer.