Changeset a35b458 in mainline for uspace/lib/usbvirt/src/device.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbvirt/src/device.c
r3061bc1 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.