Changeset a46e56b in mainline for uspace/lib/usbvirt/src/device.c
- Timestamp:
- 2018-03-22T06:49:35Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77f0a1d
- Parents:
- 3e242d2
- git-author:
- Jakub Jermar <jakub@…> (2018-03-21 23:29:06)
- git-committer:
- Jakub Jermar <jakub@…> (2018-03-22 06:49:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbvirt/src/device.c
r3e242d2 ra46e56b 54 54 * @param arg Local argument 55 55 */ 56 static void callback_connection(cap_call_handle_t i id, ipc_call_t *icall, void *arg)56 static void callback_connection(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg) 57 57 { 58 58 assert(DEV != NULL); 59 59 60 async_answer_0(i id, EOK);60 async_answer_0(icall_handle, EOK); 61 61 62 62 while (true) { 63 cap_call_handle_t c allid;63 cap_call_handle_t chandle; 64 64 ipc_call_t call; 65 65 66 c allid= async_get_call(&call);67 bool processed = usbvirt_ipc_handle_call(DEV, c allid, &call);66 chandle = async_get_call(&call); 67 bool processed = usbvirt_ipc_handle_call(DEV, chandle, &call); 68 68 if (!processed) { 69 69 if (!IPC_GET_IMETHOD(call)) { 70 async_answer_0(c allid, EOK);70 async_answer_0(chandle, EOK); 71 71 return; 72 72 } else 73 async_answer_0(c allid, EINVAL);73 async_answer_0(chandle, EINVAL); 74 74 } 75 75 }
Note:
See TracChangeset
for help on using the changeset viewer.