Changeset 8820544 in mainline for uspace/srv/vfs/vfs.c
- Timestamp:
- 2014-08-16T00:02:04Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 35b8bfe, 8cd680c
- Parents:
- 83f29e0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.c
r83f29e0 r8820544 38 38 #include <vfs/vfs.h> 39 39 #include <ipc/services.h> 40 #include <abi/ipc/event.h>41 #include <event.h>42 40 #include <ns.h> 43 41 #include <async.h> … … 53 51 #define NAME "vfs" 54 52 55 enum {56 VFS_TASK_STATE_CHANGE57 };58 59 53 static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg) 60 54 { … … 145 139 } 146 140 147 static void notification_ received(ipc_callid_t callid, ipc_call_t *call)141 static void notification_handler(ipc_callid_t callid, ipc_call_t *call, void *arg) 148 142 { 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 } 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)); 160 148 } 161 149 … … 196 184 197 185 /* 198 * S et 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);186 * Subscribe to notifications. 187 */ 188 async_event_task_subscribe(EVENT_TASK_STATE_CHANGE, notification_handler, 189 NULL); 202 190 203 191 /*
Note:
See TracChangeset
for help on using the changeset viewer.