Changeset a4eb8a60 in mainline for uspace/srv/vfs/vfs_read.c
- Timestamp:
- 2007-12-22T22:58:57Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5c786d1
- Parents:
- c9957b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_read.c
rc9957b6 ra4eb8a60 50 50 * interleave and a file cannot be closed while it is being read). 51 51 * 52 * Additional synchronization needs to be added once t able table of52 * Additional synchronization needs to be added once the table of 53 53 * open files supports parallel access! 54 54 */ … … 61 61 62 62 int fd = IPC_GET_ARG1(*request); 63 size_t size = IPC_GET_ARG2(*request); 63 64 64 65 /* … … 89 90 */ 90 91 aid_t msg; 91 msg = async_send_3(fs_phone, VFS_READ, file->node->dev_handle, 92 file->node->index, file->pos, NULL); 92 ipc_call_t answer; 93 msg = async_send_4(fs_phone, VFS_READ, file->node->dev_handle, 94 file->node->index, file->pos, size, &answer); 93 95 94 96 /* … … 106 108 ipcarg_t rc; 107 109 async_wait_for(msg, &rc); 110 size_t bytes = IPC_GET_ARG1(answer); 108 111 109 112 /* … … 111 114 * return to the client. 112 115 */ 113 ipc_answer_ 0(rid, rc);116 ipc_answer_1(rid, rc, bytes); 114 117 } 115 118
Note:
See TracChangeset
for help on using the changeset viewer.