Changeset 0eb58f1 in mainline for uspace/ns/ns.c
- Timestamp:
- 2007-06-20T20:53:19Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6765c07
- Parents:
- 84947a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/ns/ns.c
r84947a4 r0eb58f1 56 56 57 57 static int register_service(ipcarg_t service, ipcarg_t phone, ipc_call_t *call); 58 static int connect_to_service(ipcarg_t service, ipc_call_t *call, ipc_callid_t callid); 58 static int connect_to_service(ipcarg_t service, ipc_call_t *call, 59 ipc_callid_t callid); 59 60 60 61 /* Static functions implementing NS hash table operations. */ … … 84 85 static void *klogaddr = NULL; 85 86 86 static void get_as_area(ipc_callid_t callid, ipc_call_t *call, char *name, void **addr) 87 static void get_as_area(ipc_callid_t callid, ipc_call_t *call, char *name, 88 void **addr) 87 89 { 88 90 void *ph_addr; … … 107 109 ipcarg_t retval; 108 110 109 if (!hash_table_create(&ns_hash_table, NS_HASH_TABLE_CHAINS, 3, &ns_hash_table_ops)) { 111 if (!hash_table_create(&ns_hash_table, NS_HASH_TABLE_CHAINS, 3, 112 &ns_hash_table_ops)) { 110 113 return ENOMEM; 111 114 } … … 135 138 * Server requests service registration. 136 139 */ 137 retval = register_service(IPC_GET_ARG1(call), IPC_GET_ARG3(call), &call); 140 retval = register_service(IPC_GET_ARG1(call), 141 IPC_GET_ARG3(call), &call); 138 142 break; 139 143 case IPC_M_CONNECT_ME_TO: … … 141 145 * Client requests to be connected to a service. 142 146 */ 143 retval = connect_to_service(IPC_GET_ARG1(call), &call, callid); 147 retval = connect_to_service(IPC_GET_ARG1(call), &call, 148 callid); 144 149 break; 145 150 default: … … 147 152 break; 148 153 } 149 if (! 154 if (!(callid & IPC_CALLID_NOTIFICATION)) { 150 155 ipc_answer_fast(callid, retval, 0, 0); 151 156 } … … 163 168 int register_service(ipcarg_t service, ipcarg_t phone, ipc_call_t *call) 164 169 { 165 unsigned long keys[3] = { service, call->in_phone_hash, 0 }; 170 unsigned long keys[3] = { 171 service, 172 call->in_phone_hash, 173 0 174 }; 166 175 hashed_service_t *hs; 167 176
Note:
See TracChangeset
for help on using the changeset viewer.