Changeset 984a9ba in mainline for uspace/srv/vfs/vfs.c
- Timestamp:
- 2018-07-05T09:34:09Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63d46341
- Parents:
- 76f566d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.c
r76f566d r984a9ba 55 55 #define NAME "vfs" 56 56 57 static void vfs_pager( cap_call_handle_t icall_handle,ipc_call_t *icall, void *arg)57 static void vfs_pager(ipc_call_t *icall, void *arg) 58 58 { 59 async_answer_0(icall _handle, EOK);59 async_answer_0(icall, EOK); 60 60 61 61 while (true) { 62 62 ipc_call_t call; 63 cap_call_handle_t chandle =async_get_call(&call);63 async_get_call(&call); 64 64 65 65 if (!IPC_GET_IMETHOD(call)) … … 68 68 switch (IPC_GET_IMETHOD(call)) { 69 69 case IPC_M_PAGE_IN: 70 vfs_page_in( chandle,&call);70 vfs_page_in(&call); 71 71 break; 72 72 default: 73 async_answer_0( chandle, ENOTSUP);73 async_answer_0(&call, ENOTSUP); 74 74 break; 75 75 } … … 88 88 int main(int argc, char **argv) 89 89 { 90 errno_t rc;91 92 90 printf("%s: HelenOS VFS server\n", NAME); 93 91 … … 122 120 */ 123 121 port_id_t port; 124 rc = async_create_port(INTERFACE_PAGER, vfs_pager, NULL, &port);122 errno_t rc = async_create_port(INTERFACE_PAGER, vfs_pager, NULL, &port); 125 123 if (rc != EOK) { 126 124 printf("%s: Cannot create pager port: %s\n", NAME, str_error(rc));
Note:
See TracChangeset
for help on using the changeset viewer.