Changes in uspace/srv/devman/drv_conn.c [96ef672:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/drv_conn.c
r96ef672 rb7fd2a0 61 61 #include "main.h" 62 62 63 static int init_running_drv(void *drv);63 static errno_t init_running_drv(void *drv); 64 64 65 65 /** Register running driver. */ … … 72 72 73 73 /* Get driver name. */ 74 int rc = async_data_write_accept((void **) &drv_name, true, 0, 0, 0, 0);74 errno_t rc = async_data_write_accept((void **) &drv_name, true, 0, 0, 0, 0); 75 75 if (rc != EOK) { 76 76 async_answer_0(callid, rc); … … 161 161 * 162 162 * @param match_ids The list of the device's match ids. 163 * @return Zero on success, negativeerror code otherwise.164 */ 165 static int devman_receive_match_id(match_id_list_t *match_ids)163 * @return Zero on success, error code otherwise. 164 */ 165 static errno_t devman_receive_match_id(match_id_list_t *match_ids) 166 166 { 167 167 match_id_t *match_id = create_match_id(); 168 168 ipc_callid_t callid; 169 169 ipc_call_t call; 170 int rc = 0;170 errno_t rc = 0; 171 171 172 172 callid = async_get_call(&call); … … 211 211 * @param match_count The number of device's match ids to be received. 212 212 * @param match_ids The list of the device's match ids. 213 * @return Zero on success, negativeerror code otherwise.214 */ 215 static int devman_receive_match_ids(sysarg_t match_count,213 * @return Zero on success, error code otherwise. 214 */ 215 static errno_t devman_receive_match_ids(sysarg_t match_count, 216 216 match_id_list_t *match_ids) 217 217 { 218 int ret = EOK;218 errno_t ret = EOK; 219 219 size_t i; 220 220 … … 255 255 256 256 char *fun_name = NULL; 257 int rc = async_data_write_accept((void **)&fun_name, true, 0, 0, 0, 0);257 errno_t rc = async_data_write_accept((void **)&fun_name, true, 0, 0, 0, 0); 258 258 if (rc != EOK) { 259 259 dev_del_ref(pdev); … … 332 332 devman_handle_t handle = IPC_GET_ARG1(*call); 333 333 category_id_t cat_id; 334 int rc;334 errno_t rc; 335 335 336 336 /* Get category name. */ … … 381 381 { 382 382 fun_node_t *fun; 383 int rc;383 errno_t rc; 384 384 385 385 log_msg(LOG_DEFAULT, LVL_DEBUG, "devman_drv_fun_online()"); … … 407 407 fun_busy_unlock(fun); 408 408 fun_del_ref(fun); 409 async_answer_0(iid, (sysarg_t)rc);409 async_answer_0(iid, rc); 410 410 return; 411 411 } … … 414 414 fun_del_ref(fun); 415 415 416 async_answer_0(iid, (sysarg_t)EOK);416 async_answer_0(iid, EOK); 417 417 } 418 418 … … 425 425 { 426 426 fun_node_t *fun; 427 int rc;427 errno_t rc; 428 428 429 429 fun = find_fun_node(&device_tree, IPC_GET_ARG1(*icall)); … … 448 448 fun_busy_unlock(fun); 449 449 fun_del_ref(fun); 450 async_answer_0(iid, (sysarg_t)rc);450 async_answer_0(iid, rc); 451 451 return; 452 452 } … … 454 454 fun_busy_unlock(fun); 455 455 fun_del_ref(fun); 456 async_answer_0(iid, (sysarg_t)EOK);456 async_answer_0(iid, EOK); 457 457 } 458 458 … … 462 462 devman_handle_t fun_handle = IPC_GET_ARG1(*call); 463 463 dev_tree_t *tree = &device_tree; 464 int rc;464 errno_t rc; 465 465 466 466 fun_node_t *fun = find_fun_node(&device_tree, fun_handle); … … 490 490 dev_node_t *dev = fun->child; 491 491 device_state_t dev_state; 492 int gone_rc;492 errno_t gone_rc; 493 493 494 494 dev_add_ref(dev); … … 575 575 * driver needed to be served by devman during the driver's initialization). 576 576 */ 577 static int init_running_drv(void *drv)577 static errno_t init_running_drv(void *drv) 578 578 { 579 579 driver_t *driver = (driver_t *) drv;
Note:
See TracChangeset
for help on using the changeset viewer.