Changeset 124c061 in mainline
- Timestamp:
- 2011-01-23T23:47:58Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 11bb813
- Parents:
- fdb9982c
- Files:
-
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/ipc/ipc.h
rfdb9982c r124c061 165 165 * error is sent back to caller. Otherwise 166 166 * the call is accepted and the response is sent back. 167 * - the allocated phoneid is passed to userspace 167 * - the hash of the client task is passed to userspace 168 * (on the receiving side) as ARG4 of the call. 169 * - the hash of the allocated phone is passed to userspace 168 170 * (on the receiving side) as ARG5 of the call. 169 171 * -
kernel/generic/src/ipc/sysipc.c
rfdb9982c r124c061 248 248 /* The connection was accepted */ 249 249 phone_connect(phoneid, &answer->sender->answerbox); 250 /* Set 'task hash' as arg4 of response */ 251 IPC_SET_ARG4(answer->data, (sysarg_t) TASK); 250 252 /* Set 'phone hash' as arg5 of response */ 251 253 IPC_SET_ARG5(answer->data, -
uspace/lib/c/generic/devman.c
rfdb9982c r124c061 116 116 async_set_client_connection(conn); 117 117 118 sysarg_t callback_phonehash; 119 ipc_connect_to_me(phone, 0, 0, 0, &callback_phonehash); 118 ipc_connect_to_me(phone, 0, 0, 0, NULL, NULL); 120 119 async_wait_for(req, &retval); 121 120 -
uspace/lib/c/generic/devmap.c
rfdb9982c r124c061 116 116 async_set_client_connection(conn); 117 117 118 sysarg_t callback_phonehash; 119 ipc_connect_to_me(phone, 0, 0, 0, &callback_phonehash); 118 ipc_connect_to_me(phone, 0, 0, 0, NULL, NULL); 120 119 async_wait_for(req, &retval); 121 120 -
uspace/lib/c/generic/ipc.c
rfdb9982c r124c061 578 578 * @param arg2 Service-defined argument. 579 579 * @param arg3 Service-defined argument. 580 * @param phonehash Storage where the library will store an opaque 580 * @param taskhash Storage where the kernel will store an opaque 581 * identifier of the client task. 582 * @param phonehash Storage where the kernel will store an opaque 581 583 * identifier of the phone that will be used for incoming 582 584 * calls. This identifier can be used for connection … … 586 588 */ 587 589 int ipc_connect_to_me(int phoneid, int arg1, int arg2, int arg3, 588 sysarg_t * phonehash)590 sysarg_t *taskhash, sysarg_t *phonehash) 589 591 { 590 592 return ipc_call_sync_3_5(phoneid, IPC_M_CONNECT_TO_ME, arg1, arg2, 591 arg3, NULL, NULL, NULL, NULL, phonehash);593 arg3, NULL, NULL, NULL, taskhash, phonehash); 592 594 } 593 595 -
uspace/lib/c/generic/net/modules.c
rfdb9982c r124c061 145 145 sysarg_t phonehash; 146 146 147 rc = ipc_connect_to_me(phone, arg1, arg2, arg3, &phonehash); 147 rc = ipc_connect_to_me(phone, arg1, arg2, arg3, NULL, 148 &phonehash); 148 149 if (rc != EOK) { 149 150 ipc_hangup(phone); -
uspace/lib/c/include/ipc/ipc.h
rfdb9982c r124c061 259 259 sysarg_t, sysarg_t, void *, ipc_async_callback_t, int); 260 260 261 extern int ipc_connect_to_me(int, int, int, int, sysarg_t * );261 extern int ipc_connect_to_me(int, int, int, int, sysarg_t *, sysarg_t *); 262 262 extern int ipc_connect_me_to(int, int, int, int); 263 263 extern int ipc_connect_me_to_blocking(int, int, int, int); -
uspace/lib/fs/libfs.c
rfdb9982c r124c061 102 102 * Ask VFS for callback connection. 103 103 */ 104 ipc_connect_to_me(vfs_phone, 0, 0, 0, ®->vfs_phonehash);104 ipc_connect_to_me(vfs_phone, 0, 0, 0, NULL, ®->vfs_phonehash); 105 105 106 106 /* -
uspace/lib/net/il/il_skel.c
rfdb9982c r124c061 115 115 goto out; 116 116 117 sysarg_t phonehash; 118 rc = ipc_connect_to_me(PHONE_NS, service, 0, 0, &phonehash); 117 rc = ipc_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL); 119 118 if (rc != EOK) 120 119 goto out; -
uspace/lib/net/nil/nil_skel.c
rfdb9982c r124c061 115 115 goto out; 116 116 117 sysarg_t phonehash; 118 rc = ipc_connect_to_me(PHONE_NS, service, 0, 0, &phonehash); 117 rc = ipc_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL); 119 118 if (rc != EOK) 120 119 goto out; -
uspace/lib/net/tl/tl_skel.c
rfdb9982c r124c061 117 117 goto out; 118 118 119 sysarg_t phonehash; 120 rc = ipc_connect_to_me(PHONE_NS, service, 0, 0, &phonehash); 119 rc = ipc_connect_to_me(PHONE_NS, service, 0, 0, NULL, NULL); 121 120 if (rc != EOK) 122 121 goto out; -
uspace/srv/clip/clip.c
rfdb9982c r124c061 183 183 async_set_client_connection(clip_connection); 184 184 185 sysarg_t phonead; 186 if (ipc_connect_to_me(PHONE_NS, SERVICE_CLIPBOARD, 0, 0, &phonead) != 0) 185 if (ipc_connect_to_me(PHONE_NS, SERVICE_CLIPBOARD, 0, 0, NULL, NULL)) 187 186 return -1; 188 187 -
uspace/srv/devman/main.c
rfdb9982c r124c061 586 586 587 587 /* Register device manager at naming service. */ 588 sysarg_t phonead; 589 if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAN, 0, 0, &phonead) != 0) 588 if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAN, 0, 0, NULL, NULL) != 0) 590 589 return -1; 591 590 -
uspace/srv/devmap/devmap.c
rfdb9982c r124c061 1150 1150 1151 1151 /* Register device mapper at naming service */ 1152 sysarg_t phonead; 1153 if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAP, 0, 0, &phonead) != 0) 1152 if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAP, 0, 0, NULL, NULL) != 0) 1154 1153 return -1; 1155 1154 -
uspace/srv/hid/adb_mouse/adb_dev.c
rfdb9982c r124c061 69 69 /* NB: The callback connection is slotted for removal */ 70 70 sysarg_t phonehash; 71 if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) {71 if (ipc_connect_to_me(dev_phone, 0, 0, 0, NULL, &phonehash) != 0) { 72 72 printf(NAME ": Failed to create callback from device\n"); 73 73 return false; -
uspace/srv/hid/char_mouse/chardev.c
rfdb9982c r124c061 71 71 /* NB: The callback connection is slotted for removal */ 72 72 sysarg_t phonehash; 73 if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) {73 if (ipc_connect_to_me(dev_phone, 0, 0, 0, NULL, &phonehash) != 0) { 74 74 printf(NAME ": Failed to create callback from device\n"); 75 75 return false; -
uspace/srv/hid/console/console.c
rfdb9982c r124c061 727 727 /* NB: The callback connection is slotted for removal */ 728 728 sysarg_t phonehash; 729 if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) { 729 if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, 0, NULL, 730 &phonehash) != 0) { 730 731 printf(NAME ": Failed to create callback from input device\n"); 731 732 return false; … … 749 750 } 750 751 751 if (ipc_connect_to_me(mouse_phone, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) { 752 if (ipc_connect_to_me(mouse_phone, SERVICE_CONSOLE, 0, 0, NULL, 753 &phonehash) != 0) { 752 754 printf(NAME ": Failed to create callback from mouse device\n"); 753 755 mouse_phone = -1; -
uspace/srv/hid/fb/main.c
rfdb9982c r124c061 114 114 return -1; 115 115 116 sysarg_t phonead; 117 if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, 0, &phonead) != 0) 116 if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, 0, NULL, NULL) != 0) 118 117 return -1; 119 118 -
uspace/srv/hid/kbd/port/adb.c
rfdb9982c r124c061 72 72 /* NB: The callback connection is slotted for removal */ 73 73 sysarg_t phonehash; 74 if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) {74 if (ipc_connect_to_me(dev_phone, 0, 0, 0, NULL, &phonehash) != 0) { 75 75 printf(NAME ": Failed to create callback from device\n"); 76 76 return false; -
uspace/srv/hid/kbd/port/chardev.c
rfdb9982c r124c061 92 92 /* NB: The callback connection is slotted for removal */ 93 93 sysarg_t phonehash; 94 if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) {94 if (ipc_connect_to_me(dev_phone, 0, 0, 0, NULL, &phonehash) != 0) { 95 95 printf(NAME ": Failed to create callback from device\n"); 96 96 return -1; -
uspace/srv/hw/irc/apic/apic.c
rfdb9982c r124c061 108 108 109 109 async_set_client_connection(apic_connection); 110 sysarg_t phonead; 111 ipc_connect_to_me(PHONE_NS, SERVICE_APIC, 0, 0, &phonead); 110 ipc_connect_to_me(PHONE_NS, SERVICE_APIC, 0, 0, NULL, NULL); 112 111 113 112 return true; -
uspace/srv/hw/irc/fhc/fhc.c
rfdb9982c r124c061 137 137 138 138 async_set_client_connection(fhc_connection); 139 sysarg_t phonead; 140 ipc_connect_to_me(PHONE_NS, SERVICE_FHC, 0, 0, &phonead); 139 ipc_connect_to_me(PHONE_NS, SERVICE_FHC, 0, 0, NULL, NULL); 141 140 142 141 return true; -
uspace/srv/hw/irc/i8259/i8259.c
rfdb9982c r124c061 150 150 151 151 async_set_client_connection(i8259_connection); 152 sysarg_t phonead; 153 ipc_connect_to_me(PHONE_NS, SERVICE_I8259, 0, 0, &phonead); 152 ipc_connect_to_me(PHONE_NS, SERVICE_I8259, 0, 0, NULL, NULL); 154 153 155 154 return true; -
uspace/srv/hw/irc/obio/obio.c
rfdb9982c r124c061 138 138 139 139 async_set_client_connection(obio_connection); 140 sysarg_t phonead; 141 ipc_connect_to_me(PHONE_NS, SERVICE_OBIO, 0, 0, &phonead); 140 ipc_connect_to_me(PHONE_NS, SERVICE_OBIO, 0, 0, NULL, NULL); 142 141 143 142 return true; -
uspace/srv/hw/netif/ne2000/ne2000.c
rfdb9982c r124c061 397 397 async_set_interrupt_received(irq_handler); 398 398 399 sysarg_t phonehash; 400 return ipc_connect_to_me(PHONE_NS, SERVICE_NE2000, 0, 0, &phonehash); 399 return ipc_connect_to_me(PHONE_NS, SERVICE_NE2000, 0, 0, NULL, NULL); 401 400 } 402 401 -
uspace/srv/loader/main.c
rfdb9982c r124c061 423 423 int main(int argc, char *argv[]) 424 424 { 425 sysarg_t phonead;426 425 task_id_t id; 427 426 int rc; … … 439 438 440 439 /* Register at naming service. */ 441 if (ipc_connect_to_me(PHONE_NS, SERVICE_LOAD, 0, 0, &phonead) != 0)440 if (ipc_connect_to_me(PHONE_NS, SERVICE_LOAD, 0, 0, NULL, NULL) != 0) 442 441 return -2; 443 442 -
uspace/srv/net/net/net.c
rfdb9982c r124c061 326 326 static int net_module_start(async_client_conn_t client_connection) 327 327 { 328 sysarg_t phonehash;329 328 int rc; 330 329 … … 338 337 goto out; 339 338 340 rc = ipc_connect_to_me(PHONE_NS, SERVICE_NETWORKING, 0, 0, &phonehash);339 rc = ipc_connect_to_me(PHONE_NS, SERVICE_NETWORKING, 0, 0, NULL, NULL); 341 340 if (rc != EOK) 342 341 goto out; -
uspace/srv/net/netif/lo/lo.c
rfdb9982c r124c061 167 167 int netif_initialize(void) 168 168 { 169 sysarg_t phonehash; 170 return ipc_connect_to_me(PHONE_NS, SERVICE_LO, 0, 0, &phonehash); 169 return ipc_connect_to_me(PHONE_NS, SERVICE_LO, 0, 0, NULL, NULL); 171 170 } 172 171 -
uspace/srv/vfs/vfs.c
rfdb9982c r124c061 173 173 * Register at the naming service. 174 174 */ 175 sysarg_t phonead; 176 ipc_connect_to_me(PHONE_NS, SERVICE_VFS, 0, 0, &phonead); 175 ipc_connect_to_me(PHONE_NS, SERVICE_VFS, 0, 0, NULL, NULL); 177 176 178 177 /*
Note:
See TracChangeset
for help on using the changeset viewer.