Changeset c1f7a315 in mainline for uspace/srv/vfs/vfs.c


Ignore:
Timestamp:
2016-09-02T14:40:16Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ae6021d
Parents:
e503517a
Message:

Factor out handling of pager requests to vfs_pager.c

File:
1 edited

Legend:

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

    re503517a rc1f7a315  
    5858        async_answer_0(iid, EOK);
    5959
    60         char *buf = memalign(PAGE_SIZE, 1);
    61         const char hello[] = "Hello world!";
    62 
    63         memcpy(buf, hello, sizeof(hello));
    64 
    6560        while (true) {
    6661                ipc_call_t call;
     
    7267                switch (IPC_GET_IMETHOD(call)) {
    7368                case IPC_M_PAGE_IN:
    74                         if (buf)
    75                                 async_answer_1(callid, EOK, (sysarg_t) buf);
    76                         else
    77                                 async_answer_0(callid, ENOMEM);
    78                         break;
    79                        
     69                        vfs_page_in(callid, &call);
     70                        break;
    8071                default:
    8172                        async_answer_0(callid, ENOTSUP);
Note: See TracChangeset for help on using the changeset viewer.