Changes in uspace/srv/vfs/vfs.c [8820544:66366470] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.c
r8820544 r66366470 38 38 #include <vfs/vfs.h> 39 39 #include <ipc/services.h> 40 #include <abi/ipc/event.h> 41 #include <event.h> 40 42 #include <ns.h> 41 43 #include <async.h> … … 51 53 #define NAME "vfs" 52 54 55 enum { 56 VFS_TASK_STATE_CHANGE 57 }; 58 53 59 static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg) 54 60 { … … 139 145 } 140 146 141 static void notification_ handler(ipc_callid_t callid, ipc_call_t *call, void *arg)147 static void notification_received(ipc_callid_t callid, ipc_call_t *call) 142 148 { 143 if (IPC_GET_ARG1(*call) == VFS_PASS_HANDLE) 144 vfs_pass_handle( 145 (task_id_t) MERGE_LOUP32(IPC_GET_ARG4(*call), 146 IPC_GET_ARG5(*call)), call->in_task_id, 147 (int) IPC_GET_ARG2(*call)); 149 switch (IPC_GET_IMETHOD(*call)) { 150 case VFS_TASK_STATE_CHANGE: 151 if (IPC_GET_ARG1(*call) == VFS_PASS_HANDLE) 152 vfs_pass_handle( 153 (task_id_t) MERGE_LOUP32(IPC_GET_ARG4(*call), 154 IPC_GET_ARG5(*call)), call->in_task_id, 155 (int) IPC_GET_ARG2(*call)); 156 break; 157 default: 158 break; 159 } 148 160 } 149 161 … … 184 196 185 197 /* 186 * S ubscribe to notifications.187 */ 188 async_ event_task_subscribe(EVENT_TASK_STATE_CHANGE, notification_handler,189 NULL);198 * Set notification handler and subscribe to notifications. 199 */ 200 async_set_interrupt_received(notification_received); 201 event_task_subscribe(EVENT_TASK_STATE_CHANGE, VFS_TASK_STATE_CHANGE); 190 202 191 203 /*
Note:
See TracChangeset
for help on using the changeset viewer.