Changes in uspace/srv/vfs/vfs.c [27b76ca:9934f7d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.c
r27b76ca r9934f7d 37 37 38 38 #include <ipc/services.h> 39 #include <abi/ipc/event.h>40 #include <event.h>41 39 #include <ns.h> 42 40 #include <async.h> … … 47 45 #include <as.h> 48 46 #include <atomic.h> 49 #include <vfs/vfs.h>50 47 #include "vfs.h" 51 48 … … 82 79 case VFS_IN_OPEN: 83 80 vfs_open(callid, &call); 81 break; 82 case VFS_IN_OPEN_NODE: 83 vfs_open_node(callid, &call); 84 84 break; 85 85 case VFS_IN_CLOSE: … … 118 118 case VFS_IN_DUP: 119 119 vfs_dup(callid, &call); 120 break;121 case VFS_IN_WAIT_HANDLE:122 vfs_wait_handle(callid, &call);123 break;124 120 default: 125 121 async_answer_0(callid, ENOTSUP); … … 132 128 * connection fibril terminates. 133 129 */ 134 }135 136 enum {137 VFS_TASK_STATE_CHANGE138 };139 140 static void notification_received(ipc_callid_t callid, ipc_call_t *call)141 {142 switch (IPC_GET_IMETHOD(*call)) {143 case VFS_TASK_STATE_CHANGE:144 if (IPC_GET_ARG1(*call) == VFS_PASS_HANDLE)145 vfs_pass_handle(IPC_GET_ARG4(*call),146 IPC_GET_ARG5(*call), (int) IPC_GET_ARG2(*call));147 break;148 default:149 break;150 }151 130 } 152 131 … … 191 170 192 171 /* 193 * Set notification handler and subscribe to notifications.194 */195 async_set_interrupt_received(notification_received);196 event_task_subscribe(EVENT_TASK_STATE_CHANGE, VFS_TASK_STATE_CHANGE);197 198 /*199 172 * Register at the naming service. 200 173 */
Note:
See TracChangeset
for help on using the changeset viewer.