Changes in uspace/srv/vfs/vfs.c [0fe52ef:79ae36dd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.c
r0fe52ef r79ae36dd 36 36 */ 37 37 38 #include <vfs/vfs.h>39 38 #include <ipc/services.h> 40 #include <abi/ipc/event.h>41 #include <event.h>42 39 #include <ns.h> 43 40 #include <async.h> … … 48 45 #include <as.h> 49 46 #include <atomic.h> 50 #include <macros.h>51 47 #include "vfs.h" 52 48 53 49 #define NAME "vfs" 54 50 55 enum { 56 VFS_TASK_STATE_CHANGE 57 }; 58 59 static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg) 51 static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall) 60 52 { 61 53 bool cont = true; … … 87 79 case VFS_IN_OPEN: 88 80 vfs_open(callid, &call); 81 break; 82 case VFS_IN_OPEN_NODE: 83 vfs_open_node(callid, &call); 89 84 break; 90 85 case VFS_IN_CLOSE: … … 123 118 case VFS_IN_DUP: 124 119 vfs_dup(callid, &call); 125 break;126 case VFS_IN_WAIT_HANDLE:127 vfs_wait_handle(callid, &call);128 break;129 120 default: 130 121 async_answer_0(callid, ENOTSUP); … … 137 128 * connection fibril terminates. 138 129 */ 139 }140 141 static void notification_received(ipc_callid_t callid, ipc_call_t *call)142 {143 switch (IPC_GET_IMETHOD(*call)) {144 case VFS_TASK_STATE_CHANGE:145 if (IPC_GET_ARG1(*call) == VFS_PASS_HANDLE)146 vfs_pass_handle(147 (task_id_t) MERGE_LOUP32(IPC_GET_ARG4(*call),148 IPC_GET_ARG5(*call)), call->in_task_id,149 (int) IPC_GET_ARG2(*call));150 break;151 default:152 break;153 }154 130 } 155 131 … … 194 170 195 171 /* 196 * Set notification handler and subscribe to notifications.197 */198 async_set_interrupt_received(notification_received);199 event_task_subscribe(EVENT_TASK_STATE_CHANGE, VFS_TASK_STATE_CHANGE);200 201 /*202 172 * Register at the naming service. 203 173 */
Note:
See TracChangeset
for help on using the changeset viewer.