Changes in uspace/srv/vfs/vfs.c [0fe52ef:9934f7d] in mainline


Ignore:
File:
1 edited

Legend:

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

    r0fe52ef r9934f7d  
    3636 */
    3737
    38 #include <vfs/vfs.h>
    3938#include <ipc/services.h>
    40 #include <abi/ipc/event.h>
    41 #include <event.h>
    4239#include <ns.h>
    4340#include <async.h>
     
    4845#include <as.h>
    4946#include <atomic.h>
    50 #include <macros.h>
    5147#include "vfs.h"
    5248
    5349#define NAME  "vfs"
    54 
    55 enum {
    56         VFS_TASK_STATE_CHANGE
    57 };
    5850
    5951static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall, void *arg)
     
    8779                case VFS_IN_OPEN:
    8880                        vfs_open(callid, &call);
     81                        break;
     82                case VFS_IN_OPEN_NODE:
     83                        vfs_open_node(callid, &call);
    8984                        break;
    9085                case VFS_IN_CLOSE:
     
    123118                case VFS_IN_DUP:
    124119                        vfs_dup(callid, &call);
    125                         break;
    126                 case VFS_IN_WAIT_HANDLE:
    127                         vfs_wait_handle(callid, &call);
    128                         break;
    129120                default:
    130121                        async_answer_0(callid, ENOTSUP);
     
    137128         * connection fibril terminates.
    138129         */
    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         }
    154130}
    155131
     
    194170
    195171        /*
    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         /*
    202172         * Register at the naming service.
    203173         */
Note: See TracChangeset for help on using the changeset viewer.