Changes in uspace/srv/fs/devfs/devfs.c [852b801:ffa2c8ef] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/devfs/devfs.c
r852b801 rffa2c8ef 40 40 41 41 #include <stdio.h> 42 #include <ipc/ipc.h>43 42 #include <ipc/services.h> 43 #include <ipc/ns.h> 44 44 #include <async.h> 45 45 #include <errno.h> 46 #include <task.h> 46 47 #include <libfs.h> 47 48 #include "devfs.h" … … 51 52 52 53 static vfs_info_t devfs_vfs_info = { 53 .name = "devfs", 54 .name = NAME, 55 .concurrent_read_write = false, 56 .write_retains_size = false, 54 57 }; 55 58 … … 59 62 { 60 63 if (iid) 61 ipc_answer_0(iid, EOK);64 async_answer_0(iid, EOK); 62 65 63 66 while (true) { … … 65 68 ipc_callid_t callid = async_get_call(&call); 66 69 67 switch (IPC_GET_ METHOD(call)) {70 switch (IPC_GET_IMETHOD(call)) { 68 71 case IPC_M_PHONE_HUNGUP: 69 72 return; … … 73 76 case VFS_OUT_MOUNT: 74 77 devfs_mount(callid, &call); 78 break; 79 case VFS_OUT_UNMOUNTED: 80 devfs_unmounted(callid, &call); 81 break; 82 case VFS_OUT_UNMOUNT: 83 devfs_unmount(callid, &call); 75 84 break; 76 85 case VFS_OUT_LOOKUP: … … 102 111 break; 103 112 default: 104 ipc_answer_0(callid, ENOTSUP);113 async_answer_0(callid, ENOTSUP); 105 114 break; 106 115 } … … 117 126 } 118 127 119 int vfs_phone = ipc_connect_me_to_blocking(PHONE_NS,SERVICE_VFS, 0, 0);128 int vfs_phone = service_connect_blocking(SERVICE_VFS, 0, 0); 120 129 if (vfs_phone < EOK) { 121 130 printf(NAME ": Unable to connect to VFS\n"); … … 131 140 132 141 printf(NAME ": Accepting connections\n"); 142 task_retval(0); 133 143 async_manager(); 134 144
Note:
See TracChangeset
for help on using the changeset viewer.