- Timestamp:
- 2007-12-04T19:54:53Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6364d3c
- Parents:
- 90c35436
- Location:
- uspace
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/devmap/devmap1.c
r90c35436 r38c706cc 91 91 } 92 92 /* 93 * device_phone = (int) IPC_GET_ARG 3(answer);93 * device_phone = (int) IPC_GET_ARG5(answer); 94 94 */ 95 95 printf("Connected to device.\n"); … … 150 150 async_set_client_connection(driver_client_connection); 151 151 152 ipc_connect_to_me(phone, 0, 0, &callback_phonehash);152 ipc_connect_to_me(phone, 0, 0, 0, &callback_phonehash); 153 153 /* 154 154 if (NULL == async_new_connection(callback_phonehash, 0, NULL, -
uspace/app/tester/ipc/register.c
r90c35436 r38c706cc 78 78 for (i = IPC_TEST_START; i < IPC_TEST_START + 10; i++) { 79 79 ipcarg_t phonead; 80 int res = ipc_connect_to_me(PHONE_NS, i, 0, &phonead);80 int res = ipc_connect_to_me(PHONE_NS, i, 0, 0, &phonead); 81 81 if (!res) 82 82 break; -
uspace/lib/libc/generic/ipc.c
r90c35436 r38c706cc 570 570 * @param arg1 Service-defined argument. 571 571 * @param arg2 Service-defined argument. 572 * @param arg3 Service-defined argument. 572 573 * @param phonehash Storage where the library will store an opaque 573 574 * identifier of the phone that will be used for incoming … … 577 578 * @return Zero on success or a negative error code. 578 579 */ 579 int ipc_connect_to_me(int phoneid, int arg1, int arg2, ipcarg_t *phonehash) 580 { 581 return ipc_call_sync_2_3(phoneid, IPC_M_CONNECT_TO_ME, arg1, arg2, 582 NULL, NULL, phonehash); 580 int ipc_connect_to_me(int phoneid, int arg1, int arg2, int arg3, 581 ipcarg_t *phonehash) 582 { 583 return ipc_call_sync_3_5(phoneid, IPC_M_CONNECT_TO_ME, arg1, arg2, 584 arg3, NULL, NULL, NULL, NULL, phonehash); 583 585 } 584 586 -
uspace/lib/libc/include/ipc/ipc.h
r90c35436 r38c706cc 253 253 ipc_async_callback_t callback, int can_preempt); 254 254 255 extern int ipc_connect_to_me(int phoneid, int arg1, int arg2, ipcarg_t *phone); 255 extern int ipc_connect_to_me(int phoneid, int arg1, int arg2, int arg3, 256 ipcarg_t *phone); 256 257 extern int ipc_connect_me_to(int phoneid, int arg1, int arg2, int arg3); 257 258 extern int ipc_hangup(int phoneid); -
uspace/srv/console/console.c
r90c35436 r38c706cc 382 382 async_serialize_start(); 383 383 gcons_notify_connect(consnum); 384 conn->client_phone = IPC_GET_ARG 3(call);384 conn->client_phone = IPC_GET_ARG5(*icall); 385 385 screenbuffer_clear(&conn->screenbuffer); 386 386 … … 489 489 } 490 490 491 if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, &phonehash) != 0)491 if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) 492 492 return -1; 493 493 async_new_connection(phonehash, 0, NULL, keyboard_events); … … 551 551 552 552 /* Register at NS */ 553 if (ipc_connect_to_me(PHONE_NS, SERVICE_CONSOLE, 0, &phonehash) != 0) {553 if (ipc_connect_to_me(PHONE_NS, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) { 554 554 return -1; 555 555 } -
uspace/srv/devmap/devmap.c
r90c35436 r38c706cc 270 270 } 271 271 272 driver->phone = IPC_GET_ARG 3(call);272 driver->phone = IPC_GET_ARG5(call); 273 273 274 274 ipc_answer_0(callid, EOK); … … 736 736 737 737 /* Register device mapper at naming service */ 738 if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAP, 0, &phonead) != 0)738 if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAP, 0, 0, &phonead) != 0) 739 739 return -1; 740 740 -
uspace/srv/fb/main.c
r90c35436 r38c706cc 73 73 sysio_init(); 74 74 75 if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, &phonead) != 0)75 if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, 0, &phonead) != 0) 76 76 return -1; 77 77 -
uspace/srv/fs/fat/fat.c
r90c35436 r38c706cc 154 154 */ 155 155 ipcarg_t phonehash; 156 ipc_connect_to_me(vfs_phone, 0, 0, &phonehash);156 ipc_connect_to_me(vfs_phone, 0, 0, 0, &phonehash); 157 157 158 158 /* -
uspace/srv/kbd/generic/kbd.c
r90c35436 r38c706cc 109 109 break; 110 110 } 111 phone2cons = IPC_GET_ARG 3(call);111 phone2cons = IPC_GET_ARG5(call); 112 112 retval = 0; 113 113 break; … … 134 134 async_set_interrupt_received(irq_handler); 135 135 /* Register service at nameserver */ 136 if (ipc_connect_to_me(PHONE_NS, SERVICE_KEYBOARD, 0, &phonead) != 0)136 if (ipc_connect_to_me(PHONE_NS, SERVICE_KEYBOARD, 0, 0, &phonead) != 0) 137 137 return -1; 138 138 -
uspace/srv/ns/ns.c
r90c35436 r38c706cc 140 140 */ 141 141 retval = register_service(IPC_GET_ARG1(call), 142 IPC_GET_ARG 3(call), &call);142 IPC_GET_ARG5(call), &call); 143 143 break; 144 144 case IPC_M_CONNECT_ME_TO: -
uspace/srv/pci/pci.c
r90c35436 r38c706cc 58 58 59 59 printf("%s: registering at naming service.\n", NAME); 60 if (ipc_connect_to_me(PHONE_NS, SERVICE_PCI, 0, &ns_in_phone_hash) != 0) {60 if (ipc_connect_to_me(PHONE_NS, SERVICE_PCI, 0, 0, &ns_in_phone_hash) != 0) { 61 61 printf("Failed to register %s at naming service.\n", NAME); 62 62 return -1; -
uspace/srv/rd/rd.c
r90c35436 r38c706cc 212 212 213 213 /* Register service at nameserver */ 214 if (ipc_connect_to_me(PHONE_NS, SERVICE_RD, 0, &phonead) != 0)214 if (ipc_connect_to_me(PHONE_NS, SERVICE_RD, 0, 0, &phonead) != 0) 215 215 return -1; 216 216 -
uspace/srv/vfs/vfs.c
r90c35436 r38c706cc 158 158 * Register at the naming service. 159 159 */ 160 ipc_connect_to_me(PHONE_NS, SERVICE_VFS, 0, &phonead);160 ipc_connect_to_me(PHONE_NS, SERVICE_VFS, 0, 0, &phonead); 161 161 162 162 /* -
uspace/srv/vfs/vfs_register.c
r90c35436 r38c706cc 253 253 return; 254 254 } 255 fs_info->phone = IPC_GET_ARG 3(call);255 fs_info->phone = IPC_GET_ARG5(call); 256 256 ipc_answer_0(callid, EOK); 257 257
Note:
See TracChangeset
for help on using the changeset viewer.