Changes in uspace/srv/vfs/vfs.c [9934f7d:27b76ca] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.c
r9934f7d r27b76ca 37 37 38 38 #include <ipc/services.h> 39 #include <abi/ipc/event.h> 40 #include <event.h> 39 41 #include <ns.h> 40 42 #include <async.h> … … 45 47 #include <as.h> 46 48 #include <atomic.h> 49 #include <vfs/vfs.h> 47 50 #include "vfs.h" 48 51 … … 80 83 vfs_open(callid, &call); 81 84 break; 82 case VFS_IN_OPEN_NODE:83 vfs_open_node(callid, &call);84 break;85 85 case VFS_IN_CLOSE: 86 86 vfs_close(callid, &call); … … 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; 120 124 default: 121 125 async_answer_0(callid, ENOTSUP); … … 128 132 * connection fibril terminates. 129 133 */ 134 } 135 136 enum { 137 VFS_TASK_STATE_CHANGE 138 }; 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 } 130 151 } 131 152 … … 170 191 171 192 /* 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 /* 172 199 * Register at the naming service. 173 200 */
Note:
See TracChangeset
for help on using the changeset viewer.