00001 /***************************************************************************************** 00002 Copyright (c) 2002-2004 The UbixOS Project 00003 All rights reserved. 00004 00005 Redistribution and use in source and binary forms, with or without modification, are 00006 permitted provided that the following conditions are met: 00007 00008 Redistributions of source code must retain the above copyright notice, this list of 00009 conditions, the following disclaimer and the list of authors. Redistributions in binary 00010 form must reproduce the above copyright notice, this list of conditions, the following 00011 disclaimer and the list of authors in the documentation and/or other materials provided 00012 with the distribution. Neither the name of the UbixOS Project nor the names of its 00013 contributors may be used to endorse or promote products derived from this software 00014 without specific prior written permission. 00015 00016 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 00017 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 00018 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 00019 THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00020 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT 00021 OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00022 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 00023 TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 00024 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00025 00026 $Id$ 00027 00028 *****************************************************************************************/ 00029 00030 #include <ubixfs/ubixfs.h> 00031 #include <ubixos/kpanic.h> 00032 #include <vfs/vfs.h> 00033 #include <lib/kprintf.h> 00034 00035 static struct { 00036 int mounts; 00037 } ubixFS_Info; 00038 00039 void ubixfs_thread(vfs_mountPoint_t *mp) { 00040 mpi_message_t myMsg; 00041 00042 ubixFS_Info.mounts = 0; 00043 00044 if (mp == 0x0) 00045 kpanic("bah"); 00046 00047 if (mpi_createMbox("ubixfs") != 0x0) { 00048 kpanic("Error: Error creating mailbox: ubixfs\n"); 00049 } 00050 while (1) { 00051 if (mpi_fetchMessage("ubixfs",&myMsg) == 0x0) { 00052 switch(myMsg.header) { 00053 default: 00054 kprintf("Unhandled Message: %i\n",myMsg.header); 00055 break; 00056 } 00057 } 00058 } 00059 } 00060 00061 /*** 00062 $Log$ 00063 Revision 1.1.1.1 2006/06/01 12:46:17 reddawg 00064 ubix2 00065 00066 Revision 1.2 2005/10/12 00:13:37 reddawg 00067 Removed 00068 00069 Revision 1.1.1.1 2005/09/26 17:24:41 reddawg 00070 no message 00071 00072 Revision 1.3 2004/08/14 11:23:02 reddawg 00073 Changes 00074 00075 Revision 1.2 2004/07/23 09:10:06 reddawg 00076 ubixfs: cleaned up some functions played with the caching a bit 00077 vfs: renamed a bunch of functions 00078 cleaned up a few misc bugs 00079 00080 Revision 1.1 2004/06/28 18:12:44 reddawg 00081 We need these files 00082 00083 END 00084 ***/
1.4.7