Changeset 3c22f70 in mainline for uspace/lib/c
- Timestamp:
- 2011-01-24T00:14:13Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8c9b742
- Parents:
- 11bb813
- Location:
- uspace/lib/c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async.c
r11bb813 r3c22f70 139 139 link_t link; 140 140 141 /** Incoming client task hash. */ 142 sysarg_t in_task_hash; 141 143 /** Incoming phone hash. */ 142 144 sysarg_t in_phone_hash; … … 517 519 * particular fibrils. 518 520 * 521 * @param in_task_hash Identification of the incoming connection. 519 522 * @param in_phone_hash Identification of the incoming connection. 520 523 * @param callid Hash of the opening IPC_M_CONNECT_ME_TO call. … … 529 532 * 530 533 */ 531 fid_t async_new_connection(sysarg_t in_phone_hash, ipc_callid_t callid, 532 ipc_call_t *call, void (*cfibril)(ipc_callid_t, ipc_call_t *)) 534 fid_t async_new_connection(sysarg_t in_task_hash, sysarg_t in_phone_hash, 535 ipc_callid_t callid, ipc_call_t *call, 536 void (*cfibril)(ipc_callid_t, ipc_call_t *)) 533 537 { 534 538 connection_t *conn = malloc(sizeof(*conn)); … … 539 543 } 540 544 545 conn->in_task_hash = in_task_hash; 541 546 conn->in_phone_hash = in_phone_hash; 542 547 list_initialize(&conn->msg_queue); … … 592 597 case IPC_M_CONNECT_ME_TO: 593 598 /* Open new connection with fibril etc. */ 594 async_new_connection( IPC_GET_ARG5(*call), callid, call,595 c lient_connection);599 async_new_connection(call->in_task_hash, IPC_GET_ARG5(*call), 600 callid, call, client_connection); 596 601 goto out; 597 602 } -
uspace/lib/c/generic/net/modules.c
r11bb813 r3c22f70 143 143 if (phone >= 0) { 144 144 /* Request the bidirectional connection */ 145 sysarg_t taskhash; 145 146 sysarg_t phonehash; 146 147 147 rc = ipc_connect_to_me(phone, arg1, arg2, arg3, NULL,148 rc = ipc_connect_to_me(phone, arg1, arg2, arg3, &taskhash, 148 149 &phonehash); 149 150 if (rc != EOK) { … … 151 152 return rc; 152 153 } 153 async_new_connection(phonehash, 0, NULL, client_receiver); 154 async_new_connection(taskhash, phonehash, 0, NULL, 155 client_receiver); 154 156 } 155 157 -
uspace/lib/c/include/async.h
r11bb813 r3c22f70 92 92 extern int async_wait_timeout(aid_t, sysarg_t *, suseconds_t); 93 93 94 extern fid_t async_new_connection(sysarg_t, ipc_callid_t, ipc_call_t *,95 void (*)(ipc_callid_t, ipc_call_t *));94 extern fid_t async_new_connection(sysarg_t, sysarg_t, ipc_callid_t, 95 ipc_call_t *, void (*)(ipc_callid_t, ipc_call_t *)); 96 96 extern void async_usleep(suseconds_t); 97 97 extern void async_create_manager(void); -
uspace/lib/c/include/ipc/ipc.h
r11bb813 r3c22f70 46 46 typedef struct { 47 47 sysarg_t args[IPC_CALL_LEN]; 48 sysarg_t in_task_hash; 48 49 sysarg_t in_phone_hash; 49 sysarg_t in_task_hash;50 50 } ipc_call_t; 51 51
Note:
See TracChangeset
for help on using the changeset viewer.