Subversion Repositories HelenOS

Rev

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

Rev 2567 Rev 2576
Line 146... Line 146...
146
    ipc_call_t call;
146
    ipc_call_t call;
147
    int rc;
147
    int rc;
148
    size_t size;
148
    size_t size;
149
 
149
 
150
    dprintf("Processing VFS_REGISTER request received from %p.\n",
150
    dprintf("Processing VFS_REGISTER request received from %p.\n",
151
        request->in_phone_hash);
151
        request->in_phone_hash);
152
 
152
 
153
    /*
153
    /*
154
     * The first call has to be IPC_M_DATA_SEND in which we receive the
154
     * The first call has to be IPC_M_DATA_SEND in which we receive the
155
     * VFS info structure from the client FS.
155
     * VFS info structure from the client FS.
156
     */
156
     */
Line 302... Line 302...
302
    fs_info->fs_handle = (int) atomic_postinc(&fs_handle_next);
302
    fs_info->fs_handle = (int) atomic_postinc(&fs_handle_next);
303
    ipc_answer_fast(rid, EOK, (ipcarg_t) fs_info->fs_handle, 0);
303
    ipc_answer_fast(rid, EOK, (ipcarg_t) fs_info->fs_handle, 0);
304
   
304
   
305
    futex_up(&fs_head_futex);
305
    futex_up(&fs_head_futex);
306
   
306
   
307
    dprintf("\"%s\" filesystem successfully registered, handle=%d.\n",
307
    dprintf("\"%.*s\" filesystem successfully registered, handle=%d.\n",
308
        fs_info->vfs_info.name, fs_info->fs_handle);
308
        FS_NAME_MAXLEN, fs_info->vfs_info.name, fs_info->fs_handle);
309
}
309
}
310
 
310
 
311
/** For a given file system handle, implement policy for allocating a phone.
311
/** For a given file system handle, implement policy for allocating a phone.
312
 *
312
 *
313
 * @param handle    File system handle.
313
 * @param handle    File system handle.