Changeset f9b2cb4c in mainline for uspace/lib/c/generic/async.c
- Timestamp:
- 2015-08-23T12:50:23Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ef495f
- Parents:
- 0dd16778
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/async.c
r0dd16778 rf9b2cb4c 2105 2105 * @param arg2 User defined argument. 2106 2106 * @param arg3 User defined argument. 2107 * @param client_receiver Connection handing routine.2108 2107 * 2109 2108 * @return Zero on success or a negative error code. … … 2111 2110 */ 2112 2111 int async_connect_to_me(async_exch_t *exch, sysarg_t arg1, sysarg_t arg2, 2113 sysarg_t arg3 , async_port_handler_t client_receiver, void *data)2112 sysarg_t arg3) 2114 2113 { 2115 2114 if (exch == NULL) 2116 2115 return ENOENT; 2117 2116 2118 sysarg_t phone_hash; 2117 ipc_call_t answer; 2118 aid_t req = async_send_3(exch, IPC_M_CONNECT_TO_ME, arg1, arg2, arg3, 2119 &answer); 2120 2119 2121 sysarg_t rc; 2120 2121 aid_t req;2122 ipc_call_t answer;2123 req = async_send_3(exch, IPC_M_CONNECT_TO_ME, arg1, arg2, arg3,2124 &answer);2125 2122 async_wait_for(req, &rc); 2126 2123 if (rc != EOK) 2127 2124 return (int) rc; 2128 2129 phone_hash = IPC_GET_ARG5(answer);2130 2131 if (client_receiver != NULL)2132 async_new_connection(answer.in_task_id, phone_hash, 0, NULL,2133 client_receiver, data);2134 2125 2135 2126 return EOK; … … 2261 2252 int phone = async_connect_me_to_internal(exch->phone, arg1, arg2, arg3, 2262 2253 0); 2263 2264 2254 if (phone < 0) { 2265 2255 errno = phone;
Note:
See TracChangeset
for help on using the changeset viewer.