Changeset 984a9ba in mainline for uspace/lib/usbvirt/src/device.c
- Timestamp:
- 2018-07-05T09:34:09Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63d46341
- Parents:
- 76f566d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbvirt/src/device.c
r76f566d r984a9ba 50 50 /** Main IPC call handling from virtual host controller. 51 51 * 52 * @param iid Caller identification53 52 * @param icall Initial incoming call 54 53 * @param arg Local argument 54 * 55 55 */ 56 static void callback_connection( cap_call_handle_t icall_handle,ipc_call_t *icall, void *arg)56 static void callback_connection(ipc_call_t *icall, void *arg) 57 57 { 58 58 assert(DEV != NULL); 59 59 60 async_answer_0(icall _handle, EOK);60 async_answer_0(icall, EOK); 61 61 62 62 while (true) { 63 cap_call_handle_t chandle;64 63 ipc_call_t call; 64 async_get_call(&call); 65 65 66 chandle = async_get_call(&call); 67 bool processed = usbvirt_ipc_handle_call(DEV, chandle, &call); 66 bool processed = usbvirt_ipc_handle_call(DEV, &call); 68 67 if (!processed) { 69 68 if (!IPC_GET_IMETHOD(call)) { 70 async_answer_0( chandle, EOK);69 async_answer_0(&call, EOK); 71 70 return; 72 71 } else 73 async_answer_0( chandle, EINVAL);72 async_answer_0(&call, EINVAL); 74 73 } 75 74 }
Note:
See TracChangeset
for help on using the changeset viewer.