Added IO Cache Library, Moved FDD Driver to Modules Tree, Fixed Doxygen commenting
[tpg/acess2.git] / Kernel / include / fs_devfs.h
1 /*
2  * Acess 2
3  * Device Filesystem (DevFS)
4  * - vfs/fs/devfs.c
5  */
6 /**
7  * \file fs_devfs.h
8  * \brief Acess Device Filesystem interface
9  */
10 #ifndef _FS_DEVFS_H
11 #define _FS_DEVFS_H
12 #include <vfs.h>
13
14 // === TYPES ===
15 /**
16  * \brief DevFS Driver
17  */
18 typedef struct sDevFS_Driver {
19         struct sDevFS_Driver    *Next;  //!< Set to NULL by drivers (used internally)
20         char    *Name;  //!< Name of the driver file/folder
21         tVFS_Node       RootNode;       //!< Root node of driver
22 } tDevFS_Driver;
23
24 // === FUNCTIONS ===
25 /**
26  * \fn int DevFS_AddDevice(tDevFS_Driver *Dev)
27  * \brief Registers a device in the Device filesystem
28  * \param Dev   Pointer to a persistant structure that represents the driver
29  */
30 extern int      DevFS_AddDevice(tDevFS_Driver *Dev);
31
32 #endif

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