Ignore:
File:
1 edited

Legend:

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

    r852b801 rffa2c8ef  
    4040
    4141#include <stdio.h>
    42 #include <ipc/ipc.h>
    4342#include <ipc/services.h>
     43#include <ipc/ns.h>
    4444#include <async.h>
    4545#include <errno.h>
     46#include <task.h>
    4647#include <libfs.h>
    4748#include "devfs.h"
     
    5152
    5253static vfs_info_t devfs_vfs_info = {
    53         .name = "devfs",
     54        .name = NAME,
     55        .concurrent_read_write = false,
     56        .write_retains_size = false,
    5457};
    5558
     
    5962{
    6063        if (iid)
    61                 ipc_answer_0(iid, EOK);
     64                async_answer_0(iid, EOK);
    6265       
    6366        while (true) {
     
    6568                ipc_callid_t callid = async_get_call(&call);
    6669               
    67                 switch  (IPC_GET_METHOD(call)) {
     70                switch  (IPC_GET_IMETHOD(call)) {
    6871                case IPC_M_PHONE_HUNGUP:
    6972                        return;
     
    7376                case VFS_OUT_MOUNT:
    7477                        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);
    7584                        break;
    7685                case VFS_OUT_LOOKUP:
     
    102111                        break;
    103112                default:
    104                         ipc_answer_0(callid, ENOTSUP);
     113                        async_answer_0(callid, ENOTSUP);
    105114                        break;
    106115                }
     
    117126        }
    118127       
    119         int vfs_phone = ipc_connect_me_to_blocking(PHONE_NS, SERVICE_VFS, 0, 0);
     128        int vfs_phone = service_connect_blocking(SERVICE_VFS, 0, 0);
    120129        if (vfs_phone < EOK) {
    121130                printf(NAME ": Unable to connect to VFS\n");
     
    131140       
    132141        printf(NAME ": Accepting connections\n");
     142        task_retval(0);
    133143        async_manager();
    134144       
Note: See TracChangeset for help on using the changeset viewer.