Changes in uspace/srv/locsrv/locsrv.c [fafb8e5:0a520db] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/locsrv/locsrv.c
rfafb8e5 r0a520db 342 342 async_get_call(&icall); 343 343 344 if ( ipc_get_imethod(&icall) != LOC_SERVER_REGISTER) {344 if (IPC_GET_IMETHOD(icall) != LOC_SERVER_REGISTER) { 345 345 async_answer_0(&icall, EREFUSED); 346 346 return NULL; … … 547 547 548 548 fibril_mutex_lock(&services_list_mutex); 549 svc = loc_service_find_id( ipc_get_arg1(icall));549 svc = loc_service_find_id(IPC_GET_ARG1(*icall)); 550 550 if (svc == NULL) { 551 551 fibril_mutex_unlock(&services_list_mutex); … … 583 583 fibril_mutex_lock(&cdir.mutex); 584 584 585 cat = category_get(&cdir, ipc_get_arg1(icall));585 cat = category_get(&cdir, IPC_GET_ARG1(*icall)); 586 586 if (cat == NULL) { 587 587 fibril_mutex_unlock(&cdir.mutex); … … 623 623 fibril_mutex_lock(&services_list_mutex); 624 624 625 svc = loc_service_find_id( ipc_get_arg1(icall));625 svc = loc_service_find_id(IPC_GET_ARG1(*icall)); 626 626 if (svc == NULL) { 627 627 fibril_mutex_unlock(&services_list_mutex); … … 671 671 fibril_mutex_lock(&services_list_mutex); 672 672 673 svc = loc_service_find_id( ipc_get_arg1(icall));673 svc = loc_service_find_id(IPC_GET_ARG1(*icall)); 674 674 if (svc == NULL) { 675 675 fibril_mutex_unlock(&services_list_mutex); … … 715 715 * Get ID from request 716 716 */ 717 iface_t iface = ipc_get_arg1(call);718 service_id_t id = ipc_get_arg2(call);717 iface_t iface = IPC_GET_ARG1(*call); 718 service_id_t id = IPC_GET_ARG2(*call); 719 719 loc_service_t *svc = loc_service_find_id(id); 720 720 … … 726 726 727 727 async_exch_t *exch = async_exchange_begin(svc->server->sess); 728 async_forward_ 1(call, exch, iface, svc->id, IPC_FF_NONE);728 async_forward_fast(call, exch, iface, svc->id, 0, IPC_FF_NONE); 729 729 async_exchange_end(exch); 730 730 … … 774 774 */ 775 775 if (svc == NULL) { 776 if ( ipc_get_arg1(icall) & IPC_FLAG_BLOCKING) {776 if (IPC_GET_ARG1(*icall) & IPC_FLAG_BLOCKING) { 777 777 /* Blocking lookup */ 778 778 fibril_condvar_wait(&services_list_cv, … … 827 827 */ 828 828 if (namespace == NULL) { 829 if ( ipc_get_arg1(icall) & IPC_FLAG_BLOCKING) {829 if (IPC_GET_ARG1(*icall) & IPC_FLAG_BLOCKING) { 830 830 /* Blocking lookup */ 831 831 fibril_condvar_wait(&services_list_cv, … … 932 932 933 933 loc_namespace_t *namespace = 934 loc_namespace_find_id( ipc_get_arg1(icall));934 loc_namespace_find_id(IPC_GET_ARG1(*icall)); 935 935 if (namespace == NULL) { 936 936 loc_service_t *svc = 937 loc_service_find_id( ipc_get_arg1(icall));937 loc_service_find_id(IPC_GET_ARG1(*icall)); 938 938 if (svc == NULL) 939 939 async_answer_1(icall, EOK, LOC_OBJECT_NONE); … … 958 958 959 959 loc_namespace_t *namespace = 960 loc_namespace_find_id( ipc_get_arg1(icall));960 loc_namespace_find_id(IPC_GET_ARG1(*icall)); 961 961 if (namespace == NULL) 962 962 async_answer_0(icall, EEXIST); … … 1079 1079 1080 1080 loc_namespace_t *namespace = 1081 loc_namespace_find_id( ipc_get_arg1(icall));1081 loc_namespace_find_id(IPC_GET_ARG1(*icall)); 1082 1082 if (namespace == NULL) { 1083 1083 fibril_mutex_unlock(&services_list_mutex); … … 1135 1135 fibril_mutex_lock(&cdir.mutex); 1136 1136 1137 category_t *cat = category_get(&cdir, ipc_get_arg1(icall));1137 category_t *cat = category_get(&cdir, IPC_GET_ARG1(*icall)); 1138 1138 if (cat == NULL) { 1139 1139 fibril_mutex_unlock(&cdir.mutex); … … 1247 1247 static void loc_null_destroy(ipc_call_t *icall) 1248 1248 { 1249 sysarg_t i = ipc_get_arg1(icall);1249 sysarg_t i = IPC_GET_ARG1(*icall); 1250 1250 if (i >= NULL_SERVICES) { 1251 1251 async_answer_0(icall, ELIMIT); … … 1281 1281 errno_t retval; 1282 1282 1283 svc_id = ipc_get_arg1(icall);1284 cat_id = ipc_get_arg2(icall);1283 svc_id = IPC_GET_ARG1(*icall); 1284 cat_id = IPC_GET_ARG2(*icall); 1285 1285 1286 1286 fibril_mutex_lock(&services_list_mutex); … … 1419 1419 async_get_call(&call); 1420 1420 1421 if (! ipc_get_imethod(&call)) {1421 if (!IPC_GET_IMETHOD(call)) { 1422 1422 async_answer_0(&call, EOK); 1423 1423 break; 1424 1424 } 1425 1425 1426 switch ( ipc_get_imethod(&call)) {1426 switch (IPC_GET_IMETHOD(call)) { 1427 1427 case LOC_SERVER_UNREGISTER: 1428 1428 if (server == NULL) … … 1475 1475 async_get_call(&call); 1476 1476 1477 if (! ipc_get_imethod(&call)) {1477 if (!IPC_GET_IMETHOD(call)) { 1478 1478 async_answer_0(&call, EOK); 1479 1479 break; 1480 1480 } 1481 1481 1482 switch ( ipc_get_imethod(&call)) {1482 switch (IPC_GET_IMETHOD(call)) { 1483 1483 case LOC_SERVICE_GET_ID: 1484 1484 loc_service_get_id(&call);
Note:
See TracChangeset
for help on using the changeset viewer.