Changes in uspace/srv/vfs/vfs.c [27b76ca:9934f7d] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs.c

    r27b76ca r9934f7d  
    3737
    3838#include <ipc/services.h>
    39 #include <abi/ipc/event.h>
    40 #include <event.h>
    4139#include <ns.h>
    4240#include <async.h>
     
    4745#include <as.h>
    4846#include <atomic.h>
    49 #include <vfs/vfs.h>
    5047#include "vfs.h"
    5148
     
    8279                case VFS_IN_OPEN:
    8380                        vfs_open(callid, &call);
     81                        break;
     82                case VFS_IN_OPEN_NODE:
     83                        vfs_open_node(callid, &call);
    8484                        break;
    8585                case VFS_IN_CLOSE:
     
    118118                case VFS_IN_DUP:
    119119                        vfs_dup(callid, &call);
    120                         break;
    121                 case VFS_IN_WAIT_HANDLE:
    122                         vfs_wait_handle(callid, &call);
    123                         break;
    124120                default:
    125121                        async_answer_0(callid, ENOTSUP);
     
    132128         * connection fibril terminates.
    133129         */
    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         }
    151130}
    152131
     
    191170
    192171        /*
    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         /*
    199172         * Register at the naming service.
    200173         */
Note: See TracChangeset for help on using the changeset viewer.