Changeset 36d852c in mainline for uspace/srv/devmap/devmap.c
- Timestamp:
- 2007-12-23T19:45:30Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 654b7db
- Parents:
- 5c786d1
- File:
-
- 1 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);
Note:
See TracChangeset
for help on using the changeset viewer.