Changeset c1f7a315 in mainline


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

Location:
uspace/srv/vfs
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/Makefile

    re503517a rc1f7a315  
    3838        vfs_ops.c \
    3939        vfs_lookup.c \
    40         vfs_register.c
     40        vfs_register.c \
     41        vfs_pager.c
    4142
    4243include $(USPACE_PREFIX)/Makefile.common
  • 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);
  • uspace/srv/vfs/vfs.h

    re503517a rc1f7a315  
    224224extern void vfs_statfs(ipc_callid_t, ipc_call_t *);
    225225
     226extern void vfs_page_in(ipc_callid_t, ipc_call_t *);
     227
    226228typedef struct {
    227229        void *buffer;
Note: See TracChangeset for help on using the changeset viewer.