Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/devfs/devfs.c

    rffa2c8ef r852b801  
    4040
    4141#include <stdio.h>
     42#include <ipc/ipc.h>
    4243#include <ipc/services.h>
    43 #include <ipc/ns.h>
    4444#include <async.h>
    4545#include <errno.h>
    46 #include <task.h>
    4746#include <libfs.h>
    4847#include "devfs.h"
     
    5251
    5352static vfs_info_t devfs_vfs_info = {
    54         .name = NAME,
    55         .concurrent_read_write = false,
    56         .write_retains_size = false,
     53        .name = "devfs",
    5754};
    5855
     
    6259{
    6360        if (iid)
    64                 async_answer_0(iid, EOK);
     61                ipc_answer_0(iid, EOK);
    6562       
    6663        while (true) {
     
    6865                ipc_callid_t callid = async_get_call(&call);
    6966               
    70                 switch  (IPC_GET_IMETHOD(call)) {
     67                switch  (IPC_GET_METHOD(call)) {
    7168                case IPC_M_PHONE_HUNGUP:
    7269                        return;
     
    7673                case VFS_OUT_MOUNT:
    7774                        devfs_mount(callid, &call);
    78                         break;
    79                 case VFS_OUT_UNMOUNTED:
    80                         devfs_unmounted(callid, &call);
    81                         break;
    82                 case VFS_OUT_UNMOUNT:
    83                         devfs_unmount(callid, &call);
    8475                        break;
    8576                case VFS_OUT_LOOKUP:
     
    111102                        break;
    112103                default:
    113                         async_answer_0(callid, ENOTSUP);
     104                        ipc_answer_0(callid, ENOTSUP);
    114105                        break;
    115106                }
     
    126117        }
    127118       
    128         int vfs_phone = service_connect_blocking(SERVICE_VFS, 0, 0);
     119        int vfs_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_VFS, 0, 0);
    129120        if (vfs_phone < EOK) {
    130121                printf(NAME ": Unable to connect to VFS\n");
     
    140131       
    141132        printf(NAME ": Accepting connections\n");
    142         task_retval(0);
    143133        async_manager();
    144134       
Note: See TracChangeset for help on using the changeset viewer.