Changeset 984a9ba in mainline for uspace/srv/devman/main.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/srv/devman/main.c
r76f566d r984a9ba 66 66 dev_tree_t device_tree; 67 67 68 static void devman_connection_device(cap_call_handle_t icall_handle, ipc_call_t *icall, 69 void *arg) 68 static void devman_connection_device(ipc_call_t *icall, void *arg) 70 69 { 71 70 devman_handle_t handle = IPC_GET_ARG2(*icall); … … 94 93 log_msg(LOG_DEFAULT, LVL_ERROR, "IPC forwarding failed - no device or " 95 94 "function with handle %" PRIun " was found.", handle); 96 async_answer_0(icall _handle, ENOENT);95 async_answer_0(icall, ENOENT); 97 96 goto cleanup; 98 97 } … … 102 101 "connect to handle %" PRIun ", refers to a device.", 103 102 handle); 104 async_answer_0(icall _handle, ENOENT);103 async_answer_0(icall, ENOENT); 105 104 goto cleanup; 106 105 } … … 116 115 log_msg(LOG_DEFAULT, LVL_ERROR, "IPC forwarding refused - " 117 116 "the device %" PRIun " is not in usable state.", handle); 118 async_answer_0(icall _handle, ENOENT);117 async_answer_0(icall, ENOENT); 119 118 goto cleanup; 120 119 } … … 123 122 log_msg(LOG_DEFAULT, LVL_ERROR, 124 123 "Could not forward to driver `%s'.", driver->name); 125 async_answer_0(icall _handle, EINVAL);124 async_answer_0(icall, EINVAL); 126 125 goto cleanup; 127 126 } … … 138 137 139 138 async_exch_t *exch = async_exchange_begin(driver->sess); 140 async_forward_fast(icall _handle, exch, INTERFACE_DDF_CLIENT, handle, 0, IPC_FF_NONE);139 async_forward_fast(icall, exch, INTERFACE_DDF_CLIENT, handle, 0, IPC_FF_NONE); 141 140 async_exchange_end(exch); 142 141 … … 149 148 } 150 149 151 static void devman_connection_parent(cap_call_handle_t icall_handle, ipc_call_t *icall, 152 void *arg) 150 static void devman_connection_parent(ipc_call_t *icall, void *arg) 153 151 { 154 152 devman_handle_t handle = IPC_GET_ARG2(*icall); … … 177 175 log_msg(LOG_DEFAULT, LVL_ERROR, "IPC forwarding failed - no device or " 178 176 "function with handle %" PRIun " was found.", handle); 179 async_answer_0(icall _handle, ENOENT);177 async_answer_0(icall, ENOENT); 180 178 goto cleanup; 181 179 } … … 196 194 log_msg(LOG_DEFAULT, LVL_ERROR, "IPC forwarding refused - " 197 195 "the device %" PRIun " is not in usable state.", handle); 198 async_answer_0(icall _handle, ENOENT);196 async_answer_0(icall, ENOENT); 199 197 goto cleanup; 200 198 } … … 203 201 log_msg(LOG_DEFAULT, LVL_ERROR, 204 202 "Could not forward to driver `%s'.", driver->name); 205 async_answer_0(icall _handle, EINVAL);203 async_answer_0(icall, EINVAL); 206 204 goto cleanup; 207 205 } … … 218 216 219 217 async_exch_t *exch = async_exchange_begin(driver->sess); 220 async_forward_fast(icall _handle, exch, INTERFACE_DDF_DRIVER, fun_handle, 0, IPC_FF_NONE);218 async_forward_fast(icall, exch, INTERFACE_DDF_DRIVER, fun_handle, 0, IPC_FF_NONE); 221 219 async_exchange_end(exch); 222 220 … … 229 227 } 230 228 231 static void devman_forward( cap_call_handle_t icall_handle,ipc_call_t *icall, void *arg)229 static void devman_forward(ipc_call_t *icall, void *arg) 232 230 { 233 231 iface_t iface = IPC_GET_ARG1(*icall); … … 242 240 "not found.\n"); 243 241 fibril_rwlock_read_unlock(&device_tree.rwlock); 244 async_answer_0(icall _handle, ENOENT);242 async_answer_0(icall, ENOENT); 245 243 return; 246 244 } … … 253 251 254 252 async_exch_t *exch = async_exchange_begin(driver->sess); 255 async_forward_fast(icall _handle, exch, iface, handle, 0, IPC_FF_NONE);253 async_forward_fast(icall, exch, iface, handle, 0, IPC_FF_NONE); 256 254 async_exchange_end(exch); 257 255
Note:
See TracChangeset
for help on using the changeset viewer.