Subversion Repositories HelenOS

Rev

Rev 4509 | Rev 4563 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4509 Rev 4539
Line 43... Line 43...
43
#include <bool.h>
43
#include <bool.h>
44
#include <string.h>
44
#include <string.h>
45
#include <as.h>
45
#include <as.h>
46
#include <adt/list.h>
46
#include <adt/list.h>
47
#include <atomic.h>
47
#include <atomic.h>
-
 
48
#include <assert.h>
48
#include "vfs.h"
49
#include "vfs.h"
49
 
50
 
50
#define NAME "vfs"
51
#define NAME "vfs"
51
 
52
 
52
static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall)
53
static void vfs_connection(ipc_callid_t iid, ipc_call_t *icall)
Line 172... Line 173...
172
        return ENOMEM;
173
        return ENOMEM;
173
    }
174
    }
174
    memset(plb, 0, PLB_SIZE);
175
    memset(plb, 0, PLB_SIZE);
175
   
176
   
176
    /*
177
    /*
177
     * Set a connectio handling function/fibril.
178
     * Set a connection handling function/fibril.
178
     */
179
     */
179
    async_set_pending(vfs_process_pending_mount);
-
 
180
    async_set_client_connection(vfs_connection);
180
    async_set_client_connection(vfs_connection);
-
 
181
 
-
 
182
    /*
-
 
183
     * Add a fibril for handling pending mounts.
-
 
184
     */
-
 
185
    fid_t fid = fibril_create(vfs_process_pending_mount, NULL);
-
 
186
    assert(fid);
-
 
187
    fibril_add_ready(fid);
181
   
188
   
182
    /*
189
    /*
183
     * Register at the naming service.
190
     * Register at the naming service.
184
     */
191
     */
185
    ipcarg_t phonead;
192
    ipcarg_t phonead;