Changeset c1f7a315 in mainline
- Timestamp:
- 2016-09-02T14:40:16Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ae6021d
- Parents:
- e503517a
- Location:
- uspace/srv/vfs
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/Makefile
re503517a rc1f7a315 38 38 vfs_ops.c \ 39 39 vfs_lookup.c \ 40 vfs_register.c 40 vfs_register.c \ 41 vfs_pager.c 41 42 42 43 include $(USPACE_PREFIX)/Makefile.common -
uspace/srv/vfs/vfs.c
re503517a rc1f7a315 58 58 async_answer_0(iid, EOK); 59 59 60 char *buf = memalign(PAGE_SIZE, 1);61 const char hello[] = "Hello world!";62 63 memcpy(buf, hello, sizeof(hello));64 65 60 while (true) { 66 61 ipc_call_t call; … … 72 67 switch (IPC_GET_IMETHOD(call)) { 73 68 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; 80 71 default: 81 72 async_answer_0(callid, ENOTSUP); -
uspace/srv/vfs/vfs.h
re503517a rc1f7a315 224 224 extern void vfs_statfs(ipc_callid_t, ipc_call_t *); 225 225 226 extern void vfs_page_in(ipc_callid_t, ipc_call_t *); 227 226 228 typedef struct { 227 229 void *buffer;
Note:
See TracChangeset
for help on using the changeset viewer.