Changeset a4eb8a60 in mainline for uspace/srv/vfs/vfs_read.c


Ignore:
Timestamp:
2007-12-22T22:58:57Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5c786d1
Parents:
c9957b6
Message:

VFS work.
Foundation for TMPFS-side VFS_READ and fixes in VFS-side VFS_READ.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_read.c

    rc9957b6 ra4eb8a60  
    5050         * interleave and a file cannot be closed while it is being read).
    5151         *
    52          * Additional synchronization needs to be added once table table of
     52         * Additional synchronization needs to be added once the table of
    5353         * open files supports parallel access!
    5454         */
     
    6161
    6262        int fd = IPC_GET_ARG1(*request);
     63        size_t size = IPC_GET_ARG2(*request);
    6364
    6465        /*
     
    8990         */
    9091        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);
    9395       
    9496        /*
     
    106108        ipcarg_t rc;
    107109        async_wait_for(msg, &rc);
     110        size_t bytes = IPC_GET_ARG1(answer);
    108111
    109112        /*
     
    111114         * return to the client.
    112115         */
    113         ipc_answer_0(rid, rc);
     116        ipc_answer_1(rid, rc, bytes);
    114117}
    115118
Note: See TracChangeset for help on using the changeset viewer.