Changeset f9b2cb4c in mainline for uspace/lib/c
- Timestamp:
- 2015-08-23T12:50:23Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ef495f
- Parents:
- 0dd16778
- Location:
- uspace/lib/c
- Files:
-
- 1 deleted
- 34 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; -
uspace/lib/c/generic/bd.c
r0dd16778 rf9b2cb4c 57 57 async_exch_t *exch = async_exchange_begin(sess); 58 58 59 int rc = async_connect_to_me(exch, 0, 0, 0, bd_cb_conn, bd); 59 port_id_t port; 60 int rc = async_create_callback_port(exch, INTERFACE_BLOCK_CB, 0, 0, 61 bd_cb_conn, bd, &port); 62 60 63 async_exchange_end(exch); 61 64 -
uspace/lib/c/generic/clipboard.c
r0dd16778 rf9b2cb4c 61 61 62 62 while (clip_sess == NULL) 63 clip_sess = service_connect_blocking( EXCHANGE_SERIALIZE,64 SERVICE_CLIPBOARD, 0);63 clip_sess = service_connect_blocking(SERVICE_CLIPBOARD, 64 INTERFACE_CLIPBOARD, 0); 65 65 66 66 fibril_mutex_unlock(&clip_mutex); -
uspace/lib/c/generic/corecfg.c
r0dd16778 rf9b2cb4c 50 50 return ENOENT; 51 51 52 corecfg_sess = loc_service_connect( EXCHANGE_SERIALIZE, corecfg_svc,52 corecfg_sess = loc_service_connect(corecfg_svc, INTERFACE_CORECFG, 53 53 IPC_FLAG_BLOCKING); 54 54 if (corecfg_sess == NULL) -
uspace/lib/c/generic/devman.c
r0dd16778 rf9b2cb4c 77 77 * 78 78 */ 79 async_exch_t *devman_exchange_begin_blocking( devman_interface_t iface)79 async_exch_t *devman_exchange_begin_blocking(iface_t iface) 80 80 { 81 81 switch (iface) { 82 case DEVMAN_DRIVER:82 case INTERFACE_DDF_DRIVER: 83 83 fibril_mutex_lock(&devman_driver_block_mutex); 84 84 … … 89 89 if (devman_driver_block_sess == NULL) 90 90 devman_driver_block_sess = 91 service_connect_blocking _iface(EXCHANGE_PARALLEL,92 DEVMAN_DRIVER, SERVICE_DEVMAN, 0);91 service_connect_blocking(SERVICE_DEVMAN, 92 INTERFACE_DDF_DRIVER, 0); 93 93 } 94 94 … … 99 99 100 100 return async_exchange_begin(devman_driver_block_sess); 101 case DEVMAN_CLIENT:101 case INTERFACE_DDF_CLIENT: 102 102 fibril_mutex_lock(&devman_client_block_mutex); 103 103 … … 108 108 if (devman_client_block_sess == NULL) 109 109 devman_client_block_sess = 110 service_connect_blocking _iface(EXCHANGE_SERIALIZE,111 DEVMAN_CLIENT, SERVICE_DEVMAN, 0);110 service_connect_blocking(SERVICE_DEVMAN, 111 INTERFACE_DDF_CLIENT, 0); 112 112 } 113 113 … … 130 130 * 131 131 */ 132 async_exch_t *devman_exchange_begin( devman_interface_t iface)132 async_exch_t *devman_exchange_begin(iface_t iface) 133 133 { 134 134 switch (iface) { 135 case DEVMAN_DRIVER:135 case INTERFACE_DDF_DRIVER: 136 136 fibril_mutex_lock(&devman_driver_mutex); 137 137 138 138 if (devman_driver_sess == NULL) 139 139 devman_driver_sess = 140 service_connect _iface(EXCHANGE_PARALLEL, DEVMAN_DRIVER,141 SERVICE_DEVMAN, 0);140 service_connect(SERVICE_DEVMAN, 141 INTERFACE_DDF_DRIVER, 0); 142 142 143 143 fibril_mutex_unlock(&devman_driver_mutex); … … 147 147 148 148 return async_exchange_begin(devman_driver_sess); 149 case DEVMAN_CLIENT:149 case INTERFACE_DDF_CLIENT: 150 150 fibril_mutex_lock(&devman_client_mutex); 151 151 152 152 if (devman_client_sess == NULL) 153 153 devman_client_sess = 154 service_connect _iface(EXCHANGE_SERIALIZE, DEVMAN_CLIENT,155 SERVICE_DEVMAN, 0);154 service_connect(SERVICE_DEVMAN, 155 INTERFACE_DDF_CLIENT, 0); 156 156 157 157 fibril_mutex_unlock(&devman_client_mutex); … … 179 179 int devman_driver_register(const char *name) 180 180 { 181 async_exch_t *exch = devman_exchange_begin_blocking( DEVMAN_DRIVER);181 async_exch_t *exch = devman_exchange_begin_blocking(INTERFACE_DDF_DRIVER); 182 182 183 183 ipc_call_t answer; … … 192 192 } 193 193 194 exch = devman_exchange_begin( DEVMAN_DRIVER);195 async_connect_to_me(exch, 0, 0, 0 , NULL, NULL);194 exch = devman_exchange_begin(INTERFACE_DDF_DRIVER); 195 async_connect_to_me(exch, 0, 0, 0); 196 196 devman_exchange_end(exch); 197 197 … … 218 218 { 219 219 int match_count = list_count(&match_ids->ids); 220 async_exch_t *exch = devman_exchange_begin_blocking( DEVMAN_DRIVER);220 async_exch_t *exch = devman_exchange_begin_blocking(INTERFACE_DDF_DRIVER); 221 221 222 222 ipc_call_t answer; … … 268 268 const char *cat_name) 269 269 { 270 async_exch_t *exch = devman_exchange_begin_blocking( DEVMAN_DRIVER);270 async_exch_t *exch = devman_exchange_begin_blocking(INTERFACE_DDF_DRIVER); 271 271 272 272 ipc_call_t answer; … … 287 287 } 288 288 289 async_sess_t *devman_device_connect(exch_mgmt_t mgmt, devman_handle_t handle, 290 unsigned int flags) 289 async_sess_t *devman_device_connect(devman_handle_t handle, unsigned int flags) 291 290 { 292 291 async_sess_t *sess; 293 292 294 293 if (flags & IPC_FLAG_BLOCKING) 295 sess = service_connect_blocking _iface(mgmt, DEVMAN_CONNECT_TO_DEVICE,296 SERVICE_DEVMAN, handle);294 sess = service_connect_blocking(SERVICE_DEVMAN, 295 INTERFACE_DEVMAN_DEVICE, handle); 297 296 else 298 sess = service_connect _iface(mgmt, DEVMAN_CONNECT_TO_DEVICE,299 SERVICE_DEVMAN, handle);297 sess = service_connect(SERVICE_DEVMAN, 298 INTERFACE_DEVMAN_DEVICE, handle); 300 299 301 300 return sess; … … 314 313 sysarg_t retval; 315 314 316 exch = devman_exchange_begin_blocking( DEVMAN_DRIVER);315 exch = devman_exchange_begin_blocking(INTERFACE_DDF_DRIVER); 317 316 retval = async_req_1_0(exch, DEVMAN_REMOVE_FUNCTION, (sysarg_t) funh); 318 317 devman_exchange_end(exch); … … 323 322 int devman_drv_fun_online(devman_handle_t funh) 324 323 { 325 async_exch_t *exch = devman_exchange_begin( DEVMAN_DRIVER);324 async_exch_t *exch = devman_exchange_begin(INTERFACE_DDF_DRIVER); 326 325 if (exch == NULL) 327 326 return ENOMEM; … … 335 334 int devman_drv_fun_offline(devman_handle_t funh) 336 335 { 337 async_exch_t *exch = devman_exchange_begin( DEVMAN_DRIVER);336 async_exch_t *exch = devman_exchange_begin(INTERFACE_DDF_DRIVER); 338 337 if (exch == NULL) 339 338 return ENOMEM; … … 345 344 } 346 345 347 async_sess_t *devman_parent_device_connect( exch_mgmt_t mgmt,348 devman_handle_t handle,unsigned int flags)346 async_sess_t *devman_parent_device_connect(devman_handle_t handle, 347 unsigned int flags) 349 348 { 350 349 async_sess_t *sess; 351 350 352 351 if (flags & IPC_FLAG_BLOCKING) 353 sess = service_connect_blocking _iface(mgmt,354 DEVMAN_CONNECT_TO_PARENTS_DEVICE, SERVICE_DEVMAN, handle);352 sess = service_connect_blocking(SERVICE_DEVMAN, 353 INTERFACE_DEVMAN_PARENT, handle); 355 354 else 356 sess = service_connect_ iface(mgmt,357 DEVMAN_CONNECT_TO_PARENTS_DEVICE, SERVICE_DEVMAN, handle);355 sess = service_connect_blocking(SERVICE_DEVMAN, 356 INTERFACE_DEVMAN_PARENT, handle); 358 357 359 358 return sess; … … 366 365 367 366 if (flags & IPC_FLAG_BLOCKING) 368 exch = devman_exchange_begin_blocking( DEVMAN_CLIENT);367 exch = devman_exchange_begin_blocking(INTERFACE_DDF_CLIENT); 369 368 else { 370 exch = devman_exchange_begin( DEVMAN_CLIENT);369 exch = devman_exchange_begin(INTERFACE_DDF_CLIENT); 371 370 if (exch == NULL) 372 371 return ENOMEM; … … 409 408 sysarg_t dretval; 410 409 411 exch = devman_exchange_begin_blocking( DEVMAN_CLIENT);410 exch = devman_exchange_begin_blocking(INTERFACE_DDF_CLIENT); 412 411 413 412 ipc_call_t answer; … … 474 473 int devman_fun_online(devman_handle_t funh) 475 474 { 476 async_exch_t *exch = devman_exchange_begin( DEVMAN_CLIENT);475 async_exch_t *exch = devman_exchange_begin(INTERFACE_DDF_CLIENT); 477 476 if (exch == NULL) 478 477 return ENOMEM; … … 486 485 int devman_fun_offline(devman_handle_t funh) 487 486 { 488 async_exch_t *exch = devman_exchange_begin( DEVMAN_CLIENT);487 async_exch_t *exch = devman_exchange_begin(INTERFACE_DDF_CLIENT); 489 488 if (exch == NULL) 490 489 return ENOMEM; … … 499 498 devman_handle_t *handle_buf, size_t buf_size, size_t *act_size) 500 499 { 501 async_exch_t *exch = devman_exchange_begin_blocking( DEVMAN_CLIENT);500 async_exch_t *exch = devman_exchange_begin_blocking(INTERFACE_DDF_CLIENT); 502 501 503 502 ipc_call_t answer; … … 578 577 int devman_fun_get_child(devman_handle_t funh, devman_handle_t *devh) 579 578 { 580 async_exch_t *exch = devman_exchange_begin( DEVMAN_CLIENT);579 async_exch_t *exch = devman_exchange_begin(INTERFACE_DDF_CLIENT); 581 580 if (exch == NULL) 582 581 return ENOMEM; … … 598 597 int devman_dev_get_parent(devman_handle_t devh, devman_handle_t *funh) 599 598 { 600 async_exch_t *exch = devman_exchange_begin( DEVMAN_CLIENT);599 async_exch_t *exch = devman_exchange_begin(INTERFACE_DDF_CLIENT); 601 600 if (exch == NULL) 602 601 return ENOMEM; … … 611 610 int devman_fun_sid_to_handle(service_id_t sid, devman_handle_t *handle) 612 611 { 613 async_exch_t *exch = devman_exchange_begin( DEVMAN_CLIENT);612 async_exch_t *exch = devman_exchange_begin(INTERFACE_DDF_CLIENT); 614 613 if (exch == NULL) 615 614 return ENOMEM; … … 639 638 async_exch_t *exch; 640 639 641 exch = devman_exchange_begin( DEVMAN_CLIENT);640 exch = devman_exchange_begin(INTERFACE_DDF_CLIENT); 642 641 if (exch == NULL) 643 642 return ENOMEM; … … 694 693 { 695 694 sysarg_t state; 696 async_exch_t *exch = devman_exchange_begin( DEVMAN_CLIENT);695 async_exch_t *exch = devman_exchange_begin(INTERFACE_DDF_CLIENT); 697 696 if (exch == NULL) 698 697 return ENOMEM; … … 711 710 int devman_driver_load(devman_handle_t drvh) 712 711 { 713 async_exch_t *exch = devman_exchange_begin( DEVMAN_CLIENT);712 async_exch_t *exch = devman_exchange_begin(INTERFACE_DDF_CLIENT); 714 713 if (exch == NULL) 715 714 return ENOMEM; -
uspace/lib/c/generic/dhcp.c
r0dd16778 rf9b2cb4c 56 56 return ENOENT; 57 57 58 dhcp_sess = loc_service_connect( EXCHANGE_SERIALIZE, dhcp_svc,58 dhcp_sess = loc_service_connect(dhcp_svc, INTERFACE_DHCP, 59 59 IPC_FLAG_BLOCKING); 60 60 if (dhcp_sess == NULL) -
uspace/lib/c/generic/dnsr.c
r0dd16778 rf9b2cb4c 52 52 IPC_FLAG_BLOCKING); 53 53 54 dnsr_sess = loc_service_connect( EXCHANGE_SERIALIZE, dnsr_svc,54 dnsr_sess = loc_service_connect(dnsr_svc, INTERFACE_DNSR, 55 55 IPC_FLAG_BLOCKING); 56 56 } -
uspace/lib/c/generic/inet.c
r0dd16778 rf9b2cb4c 48 48 ipc_call_t answer; 49 49 aid_t req = async_send_0(exch, INET_CALLBACK_CREATE, &answer); 50 int rc = async_connect_to_me(exch, 0, 0, 0, inet_cb_conn, NULL); 50 51 port_id_t port; 52 int rc = async_create_callback_port(exch, INTERFACE_INET_CB, 0, 0, 53 inet_cb_conn, NULL, &port); 54 51 55 async_exchange_end(exch); 52 56 … … 83 87 return ENOENT; 84 88 85 inet_sess = loc_service_connect( EXCHANGE_SERIALIZE, inet_svc,89 inet_sess = loc_service_connect(inet_svc, INTERFACE_INET, 86 90 IPC_FLAG_BLOCKING); 87 91 if (inet_sess == NULL) -
uspace/lib/c/generic/inet/tcp.c
r0dd16778 rf9b2cb4c 112 112 } 113 113 114 tcp->sess = loc_service_connect( EXCHANGE_SERIALIZE, tcp_svcid,114 tcp->sess = loc_service_connect(tcp_svcid, INTERFACE_TCP, 115 115 IPC_FLAG_BLOCKING); 116 116 if (tcp->sess == NULL) { -
uspace/lib/c/generic/inet/udp.c
r0dd16778 rf9b2cb4c 98 98 } 99 99 100 udp->sess = loc_service_connect( EXCHANGE_SERIALIZE, udp_svcid,100 udp->sess = loc_service_connect(udp_svcid, INTERFACE_UDP, 101 101 IPC_FLAG_BLOCKING); 102 102 if (udp->sess == NULL) { -
uspace/lib/c/generic/inetcfg.c
r0dd16778 rf9b2cb4c 120 120 assert(inetcfg_sess == NULL); 121 121 122 rc = loc_service_get_id(SERVICE_NAME_INET CFG, &inet_svc,122 rc = loc_service_get_id(SERVICE_NAME_INET, &inet_svc, 123 123 IPC_FLAG_BLOCKING); 124 124 if (rc != EOK) 125 125 return ENOENT; 126 126 127 inetcfg_sess = loc_service_connect( EXCHANGE_SERIALIZE, inet_svc,127 inetcfg_sess = loc_service_connect(inet_svc, INTERFACE_INETCFG, 128 128 IPC_FLAG_BLOCKING); 129 129 if (inetcfg_sess == NULL) -
uspace/lib/c/generic/inetping.c
r0dd16778 rf9b2cb4c 53 53 inetping_ev_ops = ev_ops; 54 54 55 rc = loc_service_get_id(SERVICE_NAME_INET PING, &inetping_svc,55 rc = loc_service_get_id(SERVICE_NAME_INET, &inetping_svc, 56 56 IPC_FLAG_BLOCKING); 57 57 if (rc != EOK) 58 58 return ENOENT; 59 59 60 inetping_sess = loc_service_connect( EXCHANGE_SERIALIZE, inetping_svc,60 inetping_sess = loc_service_connect(inetping_svc, INTERFACE_INETPING, 61 61 IPC_FLAG_BLOCKING); 62 62 if (inetping_sess == NULL) … … 65 65 async_exch_t *exch = async_exchange_begin(inetping_sess); 66 66 67 rc = async_connect_to_me(exch, 0, 0, 0, inetping_cb_conn, NULL); 67 port_id_t port; 68 rc = async_create_callback_port(exch, INTERFACE_INETPING_CB, 0, 0, 69 inetping_cb_conn, NULL, &port); 70 68 71 async_exchange_end(exch); 69 72 -
uspace/lib/c/generic/io/console.c
r0dd16778 rf9b2cb4c 49 49 return NULL; 50 50 51 ctrl->input_sess = fsession( EXCHANGE_SERIALIZE, ifile);51 ctrl->input_sess = fsession(ifile, INTERFACE_CONSOLE); 52 52 if (!ctrl->input_sess) { 53 53 free(ctrl); … … 55 55 } 56 56 57 ctrl->output_sess = fsession( EXCHANGE_SERIALIZE, ofile);57 ctrl->output_sess = fsession(ofile, INTERFACE_CONSOLE); 58 58 if (!ctrl->output_sess) { 59 59 free(ctrl); -
uspace/lib/c/generic/io/input.c
r0dd16778 rf9b2cb4c 58 58 async_exch_t *exch = async_exchange_begin(sess); 59 59 60 int rc = async_connect_to_me(exch, 0, 0, 0, input_cb_conn, input); 60 port_id_t port; 61 int rc = async_create_callback_port(exch, INTERFACE_INPUT_CB, 0, 0, 62 input_cb_conn, input, &port); 63 61 64 async_exchange_end(exch); 62 65 -
uspace/lib/c/generic/io/io.c
r0dd16778 rf9b2cb4c 748 748 } 749 749 750 async_sess_t *fsession( exch_mgmt_t mgmt, FILE *stream)750 async_sess_t *fsession(FILE *stream, iface_t iface) 751 751 { 752 752 if (stream->fd >= 0) { 753 753 if (stream->sess == NULL) 754 stream->sess = fd_session( mgmt, stream->fd);754 stream->sess = fd_session(stream->fd, iface); 755 755 756 756 return stream->sess; -
uspace/lib/c/generic/io/log.c
r0dd16778 rf9b2cb4c 166 166 return ENOMEM; 167 167 168 logger_session = service_connect_blocking _iface(EXCHANGE_SERIALIZE,169 LOGGER_INTERFACE_WRITER, SERVICE_LOGGER, 0);168 logger_session = service_connect_blocking(SERVICE_LOGGER, 169 INTERFACE_LOGGER_WRITER, 0); 170 170 if (logger_session == NULL) { 171 171 return ENOMEM; -
uspace/lib/c/generic/io/logctl.c
r0dd16778 rf9b2cb4c 48 48 49 49 if (logger_session == NULL) { 50 logger_session = service_connect_blocking _iface(EXCHANGE_SERIALIZE,51 LOGGER_INTERFACE_CONTROL, SERVICE_LOGGER, 0);50 logger_session = service_connect_blocking(SERVICE_LOGGER, 51 INTERFACE_LOGGER_CONTROL, 0); 52 52 if (logger_session == NULL) 53 53 return ENOMEM; -
uspace/lib/c/generic/iplink.c
r0dd16778 rf9b2cb4c 59 59 60 60 async_exch_t *exch = async_exchange_begin(sess); 61 62 int rc = async_connect_to_me(exch, 0, 0, 0, iplink_cb_conn, iplink); 61 62 port_id_t port; 63 int rc = async_create_callback_port(exch, INTERFACE_IPLINK_CB, 0, 0, 64 iplink_cb_conn, iplink, &port); 65 63 66 async_exchange_end(exch); 64 67 -
uspace/lib/c/generic/irc.c
r0dd16778 rf9b2cb4c 51 51 assert(irc_sess == NULL); 52 52 53 irc_sess = service_connect_blocking(EXCHANGE_SERIALIZE, 54 SERVICE_IRC, 0); 53 irc_sess = service_connect_blocking(SERVICE_IRC, INTERFACE_IRC, 0); 55 54 56 55 if (irc_sess == NULL) -
uspace/lib/c/generic/loader.c
r0dd16778 rf9b2cb4c 69 69 70 70 async_sess_t *sess = 71 service_connect_blocking_iface_extended(SERVICE_LOADER, 72 INTERFACE_LOADER, 0); 71 service_connect_blocking(SERVICE_LOADER, INTERFACE_LOADER, 0); 73 72 if (sess == NULL) { 74 73 free(ldr); -
uspace/lib/c/generic/loc.c
r0dd16778 rf9b2cb4c 107 107 if (!loc_callback_created) { 108 108 async_exch_t *exch = 109 loc_exchange_begin_blocking( LOC_PORT_CONSUMER);109 loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER); 110 110 111 111 ipc_call_t answer; 112 112 aid_t req = async_send_0(exch, LOC_CALLBACK_CREATE, &answer); 113 int rc = async_connect_to_me(exch, 0, 0, 0, loc_cb_conn, NULL); 113 114 port_id_t port; 115 int rc = async_create_callback_port(exch, INTERFACE_LOC_CB, 0, 0, 116 loc_cb_conn, NULL, &port); 117 114 118 loc_exchange_end(exch); 115 119 … … 135 139 * 136 140 */ 137 async_exch_t *loc_exchange_begin_blocking( loc_interface_t iface)141 async_exch_t *loc_exchange_begin_blocking(iface_t iface) 138 142 { 139 143 switch (iface) { 140 case LOC_PORT_SUPPLIER:144 case INTERFACE_LOC_SUPPLIER: 141 145 fibril_mutex_lock(&loc_supp_block_mutex); 142 146 … … 147 151 if (loc_supp_block_sess == NULL) 148 152 loc_supp_block_sess = 149 service_connect_blocking _iface(EXCHANGE_SERIALIZE,150 LOC_PORT_SUPPLIER, SERVICE_LOC, 0);153 service_connect_blocking(SERVICE_LOC, 154 INTERFACE_LOC_SUPPLIER, 0); 151 155 } 152 156 … … 157 161 158 162 return async_exchange_begin(loc_supp_block_sess); 159 case LOC_PORT_CONSUMER:163 case INTERFACE_LOC_CONSUMER: 160 164 fibril_mutex_lock(&loc_cons_block_mutex); 161 165 … … 166 170 if (loc_cons_block_sess == NULL) 167 171 loc_cons_block_sess = 168 service_connect_blocking _iface(EXCHANGE_SERIALIZE,169 LOC_PORT_CONSUMER, SERVICE_LOC, 0);172 service_connect_blocking(SERVICE_LOC, 173 INTERFACE_LOC_CONSUMER, 0); 170 174 } 171 175 … … 188 192 * 189 193 */ 190 async_exch_t *loc_exchange_begin( loc_interface_t iface)194 async_exch_t *loc_exchange_begin(iface_t iface) 191 195 { 192 196 switch (iface) { 193 case LOC_PORT_SUPPLIER:197 case INTERFACE_LOC_SUPPLIER: 194 198 fibril_mutex_lock(&loc_supplier_mutex); 195 199 196 200 if (loc_supplier_sess == NULL) 197 201 loc_supplier_sess = 198 service_connect _iface(EXCHANGE_SERIALIZE, LOC_PORT_SUPPLIER,199 SERVICE_LOC, 0);202 service_connect(SERVICE_LOC, 203 INTERFACE_LOC_SUPPLIER, 0); 200 204 201 205 fibril_mutex_unlock(&loc_supplier_mutex); … … 205 209 206 210 return async_exchange_begin(loc_supplier_sess); 207 case LOC_PORT_CONSUMER:211 case INTERFACE_LOC_CONSUMER: 208 212 fibril_mutex_lock(&loc_consumer_mutex); 209 213 210 214 if (loc_consumer_sess == NULL) 211 215 loc_consumer_sess = 212 service_connect _iface(EXCHANGE_SERIALIZE, LOC_PORT_CONSUMER,213 SERVICE_LOC, 0);216 service_connect(SERVICE_LOC, 217 INTERFACE_LOC_CONSUMER, 0); 214 218 215 219 fibril_mutex_unlock(&loc_consumer_mutex); … … 237 241 int loc_server_register(const char *name) 238 242 { 239 async_exch_t *exch = loc_exchange_begin_blocking( LOC_PORT_SUPPLIER);243 async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_SUPPLIER); 240 244 241 245 ipc_call_t answer; … … 250 254 } 251 255 252 exch = loc_exchange_begin( LOC_PORT_SUPPLIER);253 async_connect_to_me(exch, 0, 0, 0 , NULL, NULL);256 exch = loc_exchange_begin(INTERFACE_LOC_SUPPLIER); 257 async_connect_to_me(exch, 0, 0, 0); 254 258 loc_exchange_end(exch); 255 259 … … 260 264 /** Register new service. 261 265 * 262 * The @p interface is used when forwarding connection to the server. 263 * If not 0, the first argument is the interface and the second argument 264 * is the service ID. 265 * 266 * When the interface is zero (default), the first argument is directly 267 * the handle (to ensure backward compatibility). 268 * 269 * @param fqsn Fully qualified service name 270 * @param[out] sid Service ID of new service 271 * @param interface Interface when forwarding 272 * 273 */ 274 int loc_service_register_with_iface(const char *fqsn, 275 service_id_t *sid, sysarg_t interface) 276 { 277 async_exch_t *exch = loc_exchange_begin_blocking(LOC_PORT_SUPPLIER); 266 * @param fqsn Fully qualified service name 267 * @param[out] sid Service ID of new service 268 * 269 */ 270 int loc_service_register(const char *fqsn, service_id_t *sid) 271 { 272 async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_SUPPLIER); 278 273 279 274 ipc_call_t answer; 280 aid_t req = async_send_2(exch, LOC_SERVICE_REGISTER, interface, 0, 281 &answer); 275 aid_t req = async_send_0(exch, LOC_SERVICE_REGISTER, &answer); 282 276 sysarg_t retval = async_data_write_start(exch, fqsn, str_size(fqsn)); 283 277 … … 304 298 } 305 299 306 /** Register new service.307 *308 * @param fqsn Fully qualified service name309 * @param sid Output: ID of new service310 *311 */312 int loc_service_register(const char *fqdn, service_id_t *sid)313 {314 return loc_service_register_with_iface(fqdn, sid, 0);315 }316 317 300 /** Unregister service. 318 301 * … … 324 307 sysarg_t retval; 325 308 326 exch = loc_exchange_begin_blocking( LOC_PORT_SUPPLIER);309 exch = loc_exchange_begin_blocking(INTERFACE_LOC_SUPPLIER); 327 310 retval = async_req_1_0(exch, LOC_SERVICE_UNREGISTER, sid); 328 311 loc_exchange_end(exch); … … 337 320 338 321 if (flags & IPC_FLAG_BLOCKING) 339 exch = loc_exchange_begin_blocking( LOC_PORT_CONSUMER);322 exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER); 340 323 else { 341 exch = loc_exchange_begin( LOC_PORT_CONSUMER);324 exch = loc_exchange_begin(INTERFACE_LOC_CONSUMER); 342 325 if (exch == NULL) 343 326 return errno; … … 390 373 391 374 *name = NULL; 392 exch = loc_exchange_begin_blocking( LOC_PORT_CONSUMER);375 exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER); 393 376 394 377 ipc_call_t answer; … … 470 453 471 454 if (flags & IPC_FLAG_BLOCKING) 472 exch = loc_exchange_begin_blocking( LOC_PORT_CONSUMER);455 exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER); 473 456 else { 474 exch = loc_exchange_begin( LOC_PORT_CONSUMER);457 exch = loc_exchange_begin(INTERFACE_LOC_CONSUMER); 475 458 if (exch == NULL) 476 459 return errno; … … 519 502 520 503 if (flags & IPC_FLAG_BLOCKING) 521 exch = loc_exchange_begin_blocking( LOC_PORT_CONSUMER);504 exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER); 522 505 else { 523 exch = loc_exchange_begin( LOC_PORT_CONSUMER);506 exch = loc_exchange_begin(INTERFACE_LOC_CONSUMER); 524 507 if (exch == NULL) 525 508 return errno; … … 556 539 loc_object_type_t loc_id_probe(service_id_t handle) 557 540 { 558 async_exch_t *exch = loc_exchange_begin_blocking( LOC_PORT_CONSUMER);541 async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER); 559 542 560 543 sysarg_t type; … … 569 552 } 570 553 571 async_sess_t *loc_service_connect _iface(service_id_t handle, iface_t iface,554 async_sess_t *loc_service_connect(service_id_t handle, iface_t iface, 572 555 unsigned int flags) 573 556 { … … 575 558 576 559 if (flags & IPC_FLAG_BLOCKING) 577 sess = service_connect_blocking _iface_extended(SERVICE_LOC, iface, handle);560 sess = service_connect_blocking(SERVICE_LOC, iface, handle); 578 561 else 579 sess = service_connect _iface_extended(SERVICE_LOC, iface, handle);562 sess = service_connect(SERVICE_LOC, iface, handle); 580 563 581 564 return sess; 582 565 } 583 566 584 async_sess_t *loc_service_connect(exch_mgmt_t mgmt, service_id_t handle,585 unsigned int flags)586 {587 async_sess_t *sess;588 589 if (flags & IPC_FLAG_BLOCKING)590 sess = service_connect_blocking_iface(mgmt, LOC_CONNECT_TO_SERVICE,591 SERVICE_LOC, handle);592 else593 sess = service_connect_iface(mgmt, LOC_CONNECT_TO_SERVICE,594 SERVICE_LOC, handle);595 596 return sess;597 }598 599 567 int loc_null_create(void) 600 568 { 601 async_exch_t *exch = loc_exchange_begin_blocking( LOC_PORT_CONSUMER);569 async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER); 602 570 603 571 sysarg_t null_id; … … 614 582 void loc_null_destroy(int null_id) 615 583 { 616 async_exch_t *exch = loc_exchange_begin_blocking( LOC_PORT_CONSUMER);584 async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER); 617 585 async_req_1_0(exch, LOC_NULL_DESTROY, (sysarg_t) null_id); 618 586 loc_exchange_end(exch); … … 640 608 sysarg_t retval; 641 609 642 exch = loc_exchange_begin_blocking( LOC_PORT_SUPPLIER);610 exch = loc_exchange_begin_blocking(INTERFACE_LOC_SUPPLIER); 643 611 retval = async_req_2_0(exch, LOC_SERVICE_ADD_TO_CAT, svc_id, cat_id); 644 612 loc_exchange_end(exch); … … 661 629 size_t loc_count_namespaces(void) 662 630 { 663 async_exch_t *exch = loc_exchange_begin_blocking( LOC_PORT_CONSUMER);631 async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER); 664 632 size_t size = loc_count_namespaces_internal(exch); 665 633 loc_exchange_end(exch); … … 670 638 size_t loc_count_services(service_id_t ns_handle) 671 639 { 672 async_exch_t *exch = loc_exchange_begin_blocking( LOC_PORT_CONSUMER);640 async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER); 673 641 size_t size = loc_count_services_internal(exch, ns_handle); 674 642 loc_exchange_end(exch); … … 681 649 /* Loop until read is succesful */ 682 650 while (true) { 683 async_exch_t *exch = loc_exchange_begin_blocking( LOC_PORT_CONSUMER);651 async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER); 684 652 size_t count = loc_count_namespaces_internal(exch); 685 653 loc_exchange_end(exch); … … 692 660 return 0; 693 661 694 exch = loc_exchange_begin( LOC_PORT_CONSUMER);662 exch = loc_exchange_begin(INTERFACE_LOC_CONSUMER); 695 663 696 664 ipc_call_t answer; … … 730 698 /* Loop until read is succesful */ 731 699 while (true) { 732 async_exch_t *exch = loc_exchange_begin_blocking( LOC_PORT_CONSUMER);700 async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER); 733 701 size_t count = loc_count_services_internal(exch, ns_handle); 734 702 loc_exchange_end(exch); … … 741 709 return 0; 742 710 743 exch = loc_exchange_begin( LOC_PORT_CONSUMER);711 exch = loc_exchange_begin(INTERFACE_LOC_CONSUMER); 744 712 745 713 ipc_call_t answer; … … 778 746 sysarg_t *id_buf, size_t buf_size, size_t *act_size) 779 747 { 780 async_exch_t *exch = loc_exchange_begin_blocking( LOC_PORT_CONSUMER);748 async_exch_t *exch = loc_exchange_begin_blocking(INTERFACE_LOC_CONSUMER); 781 749 782 750 ipc_call_t answer; -
uspace/lib/c/generic/ns.c
r0dd16778 rf9b2cb4c 43 43 { 44 44 async_exch_t *exch = async_exchange_begin(session_ns); 45 int rc = async_connect_to_me(exch, 0, service, 0 , NULL, NULL);45 int rc = async_connect_to_me(exch, 0, service, 0); 46 46 async_exchange_end(exch); 47 47 … … 49 49 } 50 50 51 async_sess_t *service_connect_iface(exch_mgmt_t mgmt, sysarg_t iface,52 service_t service, sysarg_t arg3)53 {54 async_exch_t *exch = async_exchange_begin(session_ns);55 if (!exch)56 return NULL;57 58 async_sess_t *sess =59 async_connect_me_to(mgmt, exch, iface, service, arg3);60 async_exchange_end(exch);61 62 if (!sess)63 return NULL;64 65 /*66 * FIXME Ugly hack to work around limitation of implementing67 * parallel exchanges using multiple connections. Shift out68 * first argument for non-initial connections.69 */70 async_sess_args_set(sess, iface, arg3, 0);71 72 return sess;73 }74 51 75 async_sess_t *service_connect_iface_extended(service_t service, iface_t iface, 76 sysarg_t arg3) 52 async_sess_t *service_connect(service_t service, iface_t iface, sysarg_t arg3) 77 53 { 78 54 async_exch_t *exch = async_exchange_begin(session_ns); … … 97 73 } 98 74 99 async_sess_t *service_connect(exch_mgmt_t mgmt, service_t service, sysarg_t arg3) 100 { 101 async_exch_t *exch = async_exchange_begin(session_ns); 102 if (!exch) 103 return NULL; 104 105 async_sess_t *sess = 106 async_connect_me_to(mgmt, exch, 0, service, arg3); 107 async_exchange_end(exch); 108 109 if (!sess) 110 return NULL; 111 112 /* 113 * FIXME Ugly hack to work around limitation of implementing 114 * parallel exchanges using multiple connections. Shift out 115 * first argument for non-initial connections. 116 */ 117 async_sess_args_set(sess, 0, arg3, 0); 118 119 return sess; 120 } 121 122 async_sess_t *service_connect_blocking_iface(exch_mgmt_t mgmt, sysarg_t iface, 123 service_t service, sysarg_t arg3) 124 { 125 async_exch_t *exch = async_exchange_begin(session_ns); 126 if (!exch) 127 return NULL; 128 async_sess_t *sess = 129 async_connect_me_to_blocking(mgmt, exch, iface, service, arg3); 130 async_exchange_end(exch); 131 132 if (!sess) 133 return NULL; 134 135 /* 136 * FIXME Ugly hack to work around limitation of implementing 137 * parallel exchanges using multiple connections. Shift out 138 * first argument for non-initial connections. 139 */ 140 async_sess_args_set(sess, iface, arg3, 0); 141 142 return sess; 143 } 144 145 async_sess_t *service_connect_blocking_iface_extended(service_t service, 146 iface_t iface, sysarg_t arg3) 75 async_sess_t *service_connect_blocking(service_t service, iface_t iface, 76 sysarg_t arg3) 147 77 { 148 78 async_exch_t *exch = async_exchange_begin(session_ns); … … 164 94 } 165 95 166 async_sess_t *service_connect_blocking(exch_mgmt_t mgmt, service_t service,167 sysarg_t arg3)168 {169 async_exch_t *exch = async_exchange_begin(session_ns);170 async_sess_t *sess =171 async_connect_me_to_blocking(mgmt, exch, 0, service, arg3);172 async_exchange_end(exch);173 174 if (!sess)175 return NULL;176 177 /*178 * FIXME Ugly hack to work around limitation of implementing179 * parallel exchanges using multiple connections. Shift out180 * first argument for non-initial connections.181 */182 async_sess_args_set(sess, 0, arg3, 0);183 184 return sess;185 }186 187 /** Create bidirectional connection with a service188 *189 * @param[in] service Service.190 * @param[in] arg1 First parameter.191 * @param[in] arg2 Second parameter.192 * @param[in] arg3 Third parameter.193 * @param[in] client_receiver Message receiver.194 *195 * @return Session to the service.196 * @return Other error codes as defined by async_connect_to_me().197 *198 */199 async_sess_t *service_bind(service_t service, sysarg_t arg1, sysarg_t arg2,200 sysarg_t arg3, async_port_handler_t client_receiver)201 {202 /* Connect to the needed service */203 async_sess_t *sess =204 service_connect_blocking(EXCHANGE_SERIALIZE, service, 0);205 if (sess != NULL) {206 /* Request callback connection */207 async_exch_t *exch = async_exchange_begin(sess);208 int rc = async_connect_to_me(exch, arg1, arg2, arg3,209 client_receiver, NULL);210 async_exchange_end(exch);211 212 if (rc != EOK) {213 async_hangup(sess);214 errno = rc;215 return NULL;216 }217 }218 219 return sess;220 }221 96 222 97 int ns_ping(void) -
uspace/lib/c/generic/time.c
r0dd16778 rf9b2cb4c 611 611 goto fallback; 612 612 613 clock_conn = loc_service_connect( EXCHANGE_SERIALIZE,614 svc_id,IPC_FLAG_BLOCKING);613 clock_conn = loc_service_connect(svc_id, INTERFACE_DDF, 614 IPC_FLAG_BLOCKING); 615 615 if (!clock_conn) 616 616 goto fallback; -
uspace/lib/c/generic/vfs/vfs.c
r0dd16778 rf9b2cb4c 75 75 76 76 while (vfs_sess == NULL) 77 vfs_sess = service_connect_blocking( EXCHANGE_PARALLEL, SERVICE_VFS,77 vfs_sess = service_connect_blocking(SERVICE_VFS, INTERFACE_VFS, 78 78 0); 79 79 … … 796 796 } 797 797 798 async_sess_t *fd_session( exch_mgmt_t mgmt, int fildes)798 async_sess_t *fd_session(int fildes, iface_t iface) 799 799 { 800 800 struct stat stat; … … 810 810 } 811 811 812 return loc_service_connect( mgmt, stat.service, 0);812 return loc_service_connect(stat.service, iface, 0); 813 813 } 814 814 -
uspace/lib/c/include/async.h
r0dd16778 rf9b2cb4c 59 59 * 60 60 * @param callid ID of incoming call or 0 if connection initiated from 61 * inside using async_c onnect_to_me()61 * inside using async_create_callback_port() 62 62 * @param call Incoming call or 0 if connection initiated from inside 63 * @param arg Local argument passed from async_new_connection() or 64 * async_connect_to_me() 63 * using async_create_callback_port() 64 * @param arg Local argument. 65 * 65 66 */ 66 67 typedef void (*async_port_handler_t)(ipc_callid_t, ipc_call_t *, void *); … … 82 83 EXCHANGE_ATOMIC = 0, 83 84 85 /** Exchange management via mutual exclusion 86 * 87 * Suitable for any kind of client/server communication, 88 * but can limit parallelism. 89 * 90 */ 91 EXCHANGE_SERIALIZE = 1, 92 84 93 /** Exchange management via phone cloning 85 94 * … … 89 98 * 90 99 */ 91 EXCHANGE_PARALLEL = 1, 92 93 /** Exchange management via mutual exclusion 94 * 95 * Suitable for any kind of client/server communication, 96 * but can limit parallelism. 97 * 98 */ 99 EXCHANGE_SERIALIZE = 2 100 EXCHANGE_PARALLEL = 2 100 101 } exch_mgmt_t; 101 102 … … 358 359 extern async_sess_t *async_connect_kbox(task_id_t); 359 360 360 extern int async_connect_to_me(async_exch_t *, sysarg_t, sysarg_t, sysarg_t, 361 async_port_handler_t, void *); 361 extern int async_connect_to_me(async_exch_t *, sysarg_t, sysarg_t, sysarg_t); 362 362 363 363 extern int async_hangup(async_sess_t *); -
uspace/lib/c/include/devman.h
r0dd16778 rf9b2cb4c 42 42 #include <stdbool.h> 43 43 44 extern async_exch_t *devman_exchange_begin_blocking( devman_interface_t);45 extern async_exch_t *devman_exchange_begin( devman_interface_t);44 extern async_exch_t *devman_exchange_begin_blocking(iface_t); 45 extern async_exch_t *devman_exchange_begin(iface_t); 46 46 extern void devman_exchange_end(async_exch_t *); 47 47 … … 53 53 extern int devman_drv_fun_offline(devman_handle_t); 54 54 55 extern async_sess_t *devman_device_connect(exch_mgmt_t, devman_handle_t, 56 unsigned int); 57 extern async_sess_t *devman_parent_device_connect(exch_mgmt_t, devman_handle_t, 55 extern async_sess_t *devman_device_connect(devman_handle_t, unsigned int); 56 extern async_sess_t *devman_parent_device_connect(devman_handle_t, 58 57 unsigned int); 59 58 -
uspace/lib/c/include/ipc/devman.h
r0dd16778 rf9b2cb4c 141 141 142 142 typedef enum { 143 DEVMAN_DRIVER = 1,144 DEVMAN_CLIENT,145 DEVMAN_CONNECT_TO_DEVICE,146 DEVMAN_CONNECT_TO_PARENTS_DEVICE147 } devman_interface_t;148 149 typedef enum {150 143 DEVMAN_DRIVER_REGISTER = IPC_FIRST_USER_METHOD, 151 144 DEVMAN_ADD_FUNCTION, -
uspace/lib/c/include/ipc/inet.h
r0dd16778 rf9b2cb4c 37 37 38 38 #include <ipc/common.h> 39 40 /** Inet ports */41 typedef enum {42 /** Default port */43 INET_PORT_DEFAULT = 1,44 /** Configuration port */45 INET_PORT_CFG,46 /** Ping service port */47 INET_PORT_PING,48 /** Ping6 service port */49 INET_PORT_PING650 } inet_port_t;51 39 52 40 /** Requests on Inet default port */ -
uspace/lib/c/include/ipc/loc.h
r0dd16778 rf9b2cb4c 76 76 } loc_event_t; 77 77 78 /** Ports provided by location service.79 *80 * Every process that connects to loc must ask one of following81 * ports, otherwise connection will be refused.82 *83 */84 typedef enum {85 /** Service supplier (server) port */86 LOC_PORT_SUPPLIER = 1,87 /** Service consumer (client) port */88 LOC_PORT_CONSUMER,89 /** Create new connection to instance of device that90 is specified by second argument of call. */91 LOC_CONNECT_TO_SERVICE92 } loc_interface_t;93 94 78 typedef struct { 95 79 service_id_t id; -
uspace/lib/c/include/ipc/logger.h
r0dd16778 rf9b2cb4c 69 69 } logger_writer_request_t; 70 70 71 typedef enum {72 /** Interface for controlling logger behavior. */73 LOGGER_INTERFACE_CONTROL,74 /** Interface for servers writing to the log. */75 LOGGER_INTERFACE_WRITER76 } logger_interface_t;77 78 71 #endif 79 72 -
uspace/lib/c/include/ipc/services.h
r0dd16778 rf9b2cb4c 52 52 } service_t; 53 53 54 #define SERVICE_NAME_CORECFG "corecfg" 55 #define SERVICE_NAME_DHCP "net/dhcp" 56 #define SERVICE_NAME_DNSR "net/dnsr" 57 #define SERVICE_NAME_INET "net/inet" 58 #define SERVICE_NAME_INETCFG "net/inetcfg" 59 #define SERVICE_NAME_INETPING "net/inetping" 60 #define SERVICE_NAME_INETPING6 "net/inetping6" 61 #define SERVICE_NAME_NETCONF "net/netconf" 62 #define SERVICE_NAME_UDP "net/udp" 63 #define SERVICE_NAME_TCP "net/tcp" 54 #define SERVICE_NAME_CORECFG "corecfg" 55 #define SERVICE_NAME_DHCP "net/dhcp" 56 #define SERVICE_NAME_DNSR "net/dnsr" 57 #define SERVICE_NAME_INET "net/inet" 58 #define SERVICE_NAME_NETCONF "net/netconf" 59 #define SERVICE_NAME_UDP "net/udp" 60 #define SERVICE_NAME_TCP "net/tcp" 64 61 65 62 #endif -
uspace/lib/c/include/loc.h
r0dd16778 rf9b2cb4c 42 42 typedef void (*loc_cat_change_cb_t)(void); 43 43 44 extern async_exch_t *loc_exchange_begin_blocking( loc_interface_t);45 extern async_exch_t *loc_exchange_begin( loc_interface_t);44 extern async_exch_t *loc_exchange_begin_blocking(iface_t); 45 extern async_exch_t *loc_exchange_begin(iface_t); 46 46 extern void loc_exchange_end(async_exch_t *); 47 47 48 48 extern int loc_server_register(const char *); 49 49 extern int loc_service_register(const char *, service_id_t *); 50 extern int loc_service_register_with_iface(const char *, service_id_t *,51 sysarg_t);52 50 extern int loc_service_unregister(service_id_t); 53 51 extern int loc_service_add_to_cat(service_id_t, category_id_t); … … 65 63 extern loc_object_type_t loc_id_probe(service_id_t); 66 64 67 extern async_sess_t *loc_service_connect_iface(service_id_t, iface_t, 68 unsigned int); 69 extern async_sess_t *loc_service_connect(exch_mgmt_t, service_id_t, 65 extern async_sess_t *loc_service_connect(service_id_t, iface_t, 70 66 unsigned int); 71 67 -
uspace/lib/c/include/ns.h
r0dd16778 rf9b2cb4c 42 42 43 43 extern int service_register(service_t); 44 extern async_sess_t *service_connect(exch_mgmt_t, service_t, sysarg_t); 45 extern async_sess_t *service_connect_iface_extended(service_t, iface_t, sysarg_t); 46 extern async_sess_t *service_connect_iface(exch_mgmt_t, sysarg_t, service_t, sysarg_t); 47 extern async_sess_t *service_connect_blocking(exch_mgmt_t, service_t, sysarg_t); 48 extern async_sess_t *service_connect_blocking_iface_extended(service_t, iface_t, 49 sysarg_t); 50 extern async_sess_t *service_connect_blocking_iface(exch_mgmt_t, sysarg_t, service_t, 51 sysarg_t); 52 extern async_sess_t *service_bind(service_t, sysarg_t, sysarg_t, sysarg_t, 53 async_port_handler_t); 44 extern async_sess_t *service_connect(service_t, iface_t, sysarg_t); 45 extern async_sess_t *service_connect_blocking(service_t, iface_t, sysarg_t); 54 46 55 47 extern int ns_ping(void); -
uspace/lib/c/include/vfs/vfs_sess.h
r0dd16778 rf9b2cb4c 39 39 #include <stdio.h> 40 40 41 extern async_sess_t *fd_session( exch_mgmt_t, int);42 extern async_sess_t *fsession( exch_mgmt_t, FILE *);41 extern async_sess_t *fd_session(int, iface_t); 42 extern async_sess_t *fsession(FILE *, iface_t); 43 43 44 44 #endif
Note:
See TracChangeset
for help on using the changeset viewer.