Changes in uspace/lib/c/generic/ipc.c [79ae36dd:ab34cc9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/ipc.c
r79ae36dd rab34cc9 47 47 #include <futex.h> 48 48 #include <fibril.h> 49 #include <macros.h> 49 50 50 51 /** … … 458 459 while (!list_empty(&queued_calls)) { 459 460 async_call_t *call = 460 list_get_instance( queued_calls.next, async_call_t, list);461 list_get_instance(list_first(&queued_calls), async_call_t, list); 461 462 ipc_callid_t callid = 462 463 ipc_call_async_internal(call->u.msg.phoneid, &call->u.msg.data); … … 511 512 512 513 link_t *item; 513 for (item = dispatched_calls. next; item != &dispatched_calls;514 for (item = dispatched_calls.head.next; item != &dispatched_calls.head; 514 515 item = item->next) { 515 516 async_call_t *call = … … 611 612 /** Request callback connection. 612 613 * 613 * The @a task hashand @a phonehash identifiers returned614 * The @a task_id and @a phonehash identifiers returned 614 615 * by the kernel can be used for connection tracking. 615 616 * … … 618 619 * @param arg2 User defined argument. 619 620 * @param arg3 User defined argument. 620 * @param task hash Opaque identifier of the client task.621 * @param task_id Identifier of the client task. 621 622 * @param phonehash Opaque identifier of the phone that will 622 623 * be used for incoming calls. … … 626 627 */ 627 628 int ipc_connect_to_me(int phoneid, sysarg_t arg1, sysarg_t arg2, sysarg_t arg3, 628 sysarg_t *taskhash, sysarg_t *phonehash) 629 { 630 return ipc_call_sync_3_5(phoneid, IPC_M_CONNECT_TO_ME, arg1, arg2, 631 arg3, NULL, NULL, NULL, taskhash, phonehash); 629 task_id_t *task_id, sysarg_t *phonehash) 630 { 631 ipc_call_t data; 632 int rc = __SYSCALL6(SYS_IPC_CALL_SYNC_FAST, phoneid, 633 IPC_M_CONNECT_TO_ME, arg1, arg2, arg3, (sysarg_t) &data); 634 if (rc == EOK) { 635 *task_id = data.in_task_id; 636 *phonehash = IPC_GET_ARG5(data); 637 } 638 return rc; 632 639 } 633 640
Note:
See TracChangeset
for help on using the changeset viewer.