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