Changeset bcf23cf in mainline for uspace/srv/vfs/vfs.c


Ignore:
Timestamp:
2007-09-27T12:38:31Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
37e7dc54
Parents:
5d4e90f0
Message:

VFS work.
Start support for the Patch Lookup Buffer.
Also add rootfs pointer.

File:
1 edited

Legend:

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

    r5d4e90f0 rbcf23cf  
    3333/**
    3434 * @file        vfs.c
    35  * @brief       VFS multiplexer for HelenOS.
     35 * @brief       VFS service for HelenOS.
    3636 */
    3737
     
    4242#include <stdio.h>
    4343#include <bool.h>
     44#include <string.h>
     45#include <as.h>
    4446#include <libadt/list.h>
    4547#include "vfs.h"
     
    109111        printf("VFS: HelenOS VFS server\n");
    110112
     113        /*
     114         * Initialize the list of registered file systems.
     115         */
    111116        list_initialize(&fs_head);
     117
     118        /*
     119         * Allocate and initialize the Path Lookup Buffer.
     120         */
     121        list_initialize(&plb_head);
     122        plb = as_get_mappable_page(PLB_SIZE);
     123//      memset(plb, 0, PLB_SIZE);
     124       
     125        /*
     126         * Set a connectio handling function/fibril.
     127         */
    112128        async_set_client_connection(vfs_connection);
     129
     130        /*
     131         * Register at the naming service.
     132         */
    113133        ipc_connect_to_me(PHONE_NS, SERVICE_VFS, 0, &phonead);
     134
     135        /*
     136         * Start accepting connections.
     137         */
    114138        async_manager();
    115139        return 0;
Note: See TracChangeset for help on using the changeset viewer.