예제 #1
0
        /// <summary>
        /// Initializes PciFS
        /// </summary>
        public static unsafe void Init()
        {
            m_container = new ContainerFS();
            RootPoint dev = new RootPoint("pci", m_container.Node);

            VFS.MountPointDevFS.AddEntry(dev);
        }
예제 #2
0
        /// <summary>
        /// Initializes the audio filesystem
        /// </summary>
        public unsafe static void Init()
        {
            m_buffers   = new List();
            m_tmpBuffer = new ushort[BufferSize];
            m_container = new ContainerFS();

            RootPoint dev = new RootPoint("audio", m_container.Node);

            VFS.RootMountPoint.AddEntry(dev);
        }
예제 #3
0
        /// <summary>
        /// Initializes VFS
        /// </summary>
        public static void Init()
        {
            // Container of all mountpoints
            RootMountPoint = new ContainerFS();

            // DevFS
            MountPointDevFS = new ContainerFS();
            RootPoint devMount = new RootPoint("devices", MountPointDevFS.Node);

            RootMountPoint.AddEntry(devMount);

            // NetFS
            MountPointNetFS = new ContainerFS();
            RootPoint netMount = new RootPoint("net", MountPointNetFS.Node);

            RootMountPoint.AddEntry(netMount);

            // Initialize other filesystems
            initFileSystems();

            Console.WriteLine("[VFS] Initialized");
        }