Changeset 472c09d in mainline for uspace/srv/hid/console/console.c
- Timestamp:
- 2010-02-03T15:18:40Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b4cbef1
- Parents:
- 28be7fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/console.c
r28be7fa r472c09d 475 475 static void cons_write(console_t *cons, ipc_callid_t rid, ipc_call_t *request) 476 476 { 477 ipc_callid_t callid;477 void *buf; 478 478 size_t size; 479 if (!async_data_write_receive(&callid, &size)) { 480 ipc_answer_0(callid, EINVAL); 481 ipc_answer_0(rid, EINVAL); 479 int rc = async_data_receive(&buf, 0, 0, &size); 480 481 if (rc != EOK) { 482 ipc_answer_0(rid, rc); 482 483 return; 483 484 } 484 485 char *buf = (char *) malloc(size);486 if (buf == NULL) {487 ipc_answer_0(callid, ENOMEM);488 ipc_answer_0(rid, ENOMEM);489 return;490 }491 492 (void) async_data_write_finalize(callid, buf, size);493 485 494 486 async_serialize_start();
Note:
See TracChangeset
for help on using the changeset viewer.