Changeset 36d852c in mainline for uspace/srv
- Timestamp:
- 2007-12-23T19:45:30Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 654b7db
- Parents:
- 5c786d1
- Location:
- uspace/srv
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devmap/devmap.c
r5c786d1 r36d852c 203 203 * Get driver name 204 204 */ 205 if (!ipc_data_ receive(&callid, NULL, &name_size)) {205 if (!ipc_data_write_receive(&callid, NULL, &name_size)) { 206 206 printf("Unexpected request.\n"); 207 207 free(driver); … … 234 234 * Send confirmation to sender and get data into buffer. 235 235 */ 236 if (EOK != ipc_data_ deliver(callid, driver->name, name_size)) {236 if (EOK != ipc_data_write_deliver(callid, driver->name, name_size)) { 237 237 printf("Cannot read driver name.\n"); 238 238 free(driver->name); … … 369 369 370 370 /* Get device name */ 371 if (!ipc_data_ receive(&callid, NULL, &size)) {371 if (!ipc_data_write_receive(&callid, NULL, &size)) { 372 372 free(device); 373 373 printf("Cannot read device name.\n"); … … 395 395 } 396 396 397 ipc_data_ deliver(callid, device->name, size);397 ipc_data_write_deliver(callid, device->name, size); 398 398 device->name[size] = 0; 399 399 … … 490 490 * read the name itself until the buffer is allocated). 491 491 */ 492 if (!ipc_data_ receive(&callid, NULL, &name_size)) {492 if (!ipc_data_write_receive(&callid, NULL, &name_size)) { 493 493 ipc_answer_0(callid, EREFUSED); 494 494 ipc_answer_0(iid, EREFUSED); … … 514 514 * Send confirmation to sender and get data into buffer. 515 515 */ 516 if (EOK != (retval = ipc_data_ deliver(callid, name, name_size))) {516 if (EOK != (retval = ipc_data_write_deliver(callid, name, name_size))) { 517 517 ipc_answer_0(iid, EREFUSED); 518 518 return; … … 567 567 sending must be initiated by client 568 568 569 int rc = ipc_data_ send(phone, device->name, name_size);569 int rc = ipc_data_write_send(phone, device->name, name_size); 570 570 if (rc != EOK) { 571 571 async_wait_for(req, NULL); -
uspace/srv/vfs/vfs_mount.c
r5c786d1 r36d852c 87 87 * system. 88 88 */ 89 if (!ipc_data_ receive(&callid, NULL, &size)) {89 if (!ipc_data_write_receive(&callid, NULL, &size)) { 90 90 ipc_answer_0(callid, EINVAL); 91 91 ipc_answer_0(rid, EINVAL); … … 107 107 */ 108 108 char fs_name[FS_NAME_MAXLEN + 1]; 109 (void) ipc_data_ deliver(callid, fs_name, size);109 (void) ipc_data_write_deliver(callid, fs_name, size); 110 110 fs_name[size] = '\0'; 111 111 … … 123 123 * Now, we want the client to send us the mount point. 124 124 */ 125 if (!ipc_data_ receive(&callid, NULL, &size)) {125 if (!ipc_data_write_receive(&callid, NULL, &size)) { 126 126 ipc_answer_0(callid, EINVAL); 127 127 ipc_answer_0(rid, EINVAL); … … 151 151 * Deliver the mount point. 152 152 */ 153 (void) ipc_data_ deliver(callid, buf, size);153 (void) ipc_data_write_deliver(callid, buf, size); 154 154 155 155 /* -
uspace/srv/vfs/vfs_open.c
r5c786d1 r36d852c 62 62 ipc_callid_t callid; 63 63 64 if (!ipc_data_ receive(&callid, NULL, &size)) {64 if (!ipc_data_write_receive(&callid, NULL, &size)) { 65 65 ipc_answer_0(callid, EINVAL); 66 66 ipc_answer_0(rid, EINVAL); … … 83 83 84 84 int rc; 85 if ((rc = ipc_data_ deliver(callid, path, size))) {85 if ((rc = ipc_data_write_deliver(callid, path, size))) { 86 86 ipc_answer_0(rid, rc); 87 87 free(path); -
uspace/srv/vfs/vfs_register.c
r5c786d1 r36d852c 165 165 * VFS info structure from the client FS. 166 166 */ 167 if (!ipc_data_ receive(&callid, NULL, &size)) {167 if (!ipc_data_write_receive(&callid, NULL, &size)) { 168 168 /* 169 169 * The client doesn't obey the same protocol as we do. … … 206 206 futex_initialize(&fs_info->phone_futex, 1); 207 207 208 rc = ipc_data_ deliver(callid, &fs_info->vfs_info, size);208 rc = ipc_data_write_deliver(callid, &fs_info->vfs_info, size); 209 209 if (rc != EOK) { 210 210 dprintf("Failed to deliver the VFS info into our AS, rc=%d.\n",
Note:
See TracChangeset
for help on using the changeset viewer.