Kernel/VFS - Kernel-side implementation of marshalled FDs
[tpg/acess2.git] / KernelLand / Kernel / vfs / main.c
index 38f7c80..4ed7829 100644 (file)
@@ -59,12 +59,21 @@ int VFS_Init(void)
        VFS_MkDir("/Devices");
        VFS_MkDir("/Mount");
        VFS_Mount("dev", "/Devices", "devfs", "");
-               
-       Log_Debug("VFS", "Setting max files");
-       *Threads_GetMaxFD() = 32;
+       
+       // Set default max user file count
+       // - Applies to PID0, but propagated to all children
+       *Threads_GetMaxFD(NULL) = 32;
        return 0;
 }
 
+void VFS_Deinit(void)
+{
+       SysFS_RemoveFile(giVFS_MountFileID);
+       free(gsVFS_MountFile);
+       SysFS_RemoveFile(giVFS_DriverFileID);
+       free(gsVFS_DriverFile);
+}
+
 /**
  * \fn char *VFS_GetTruePath(const char *Path)
  * \brief Gets the true path (non-symlink) of a file
@@ -164,3 +173,9 @@ void VFS_UpdateDriverFile(void)
        if(gsVFS_DriverFile)    free(gsVFS_DriverFile);
        gsVFS_DriverFile = buf;
 }
+
+void VFS_CleanupNode(tVFS_Node *Node)
+{
+       
+}
+

UCC git Repository :: git.ucc.asn.au