BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / blob / c38b2e574ec03c555fe7e03a31d9ebaa3d5b894b / vfs / vfs.c

// Related

Nucleus

Barry Virtual File System 5acaf74 (3 years, 3 months ago)
/*
 * This file controls the Virtual File System for the kernel.  It implements a
 * generic File System, which can hook other File Systems.  This forms a key
 * part of the kernel, and is used for loading programs and some higher-level
 * IPC and device management.
 */

#include <nucleus/object.h>
#include <nucleus/vfs.h>

#include <nucleus/task.h>
#include "namespace.h"

Inode *tmpfs_mount(FSType *type, int flags, const char *dev, void *data);

/* Initialise the Virtual File System */
void
init_vfs(void)
{
	register_fstype("tmpfs", tmpfs_mount);

	mount("tmpfs", NULL, "tmpfs", 0, NULL);
}