Changeset c1f7a315 in mainline for uspace/srv/vfs/vfs.c
- Timestamp:
- 2016-09-02T14:40:16Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ae6021d
- Parents:
- e503517a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.