Usermode/ld-acess - Disabled PIC (not needed)
[tpg/acess2.git] / Kernel / include / fs_devfs.h
1 /**
2  * \file fs_devfs.h
3  * \brief Acess Device Filesystem interface
4  * \author John Hodge (thePowersGang)
5  */
6 #ifndef _FS_DEVFS_H
7 #define _FS_DEVFS_H
8 #include <vfs.h>
9
10 // === TYPES ===
11 /**
12  * \brief DevFS driver definition
13  */
14 typedef struct sDevFS_Driver
15 {
16         struct sDevFS_Driver    *Next;  //!< Set to NULL by drivers (used internally)
17         const char      *Name;  //!< Name of the driver file/folder (must be unique)
18         tVFS_Node       RootNode;       //!< Root node of driver
19 } tDevFS_Driver;
20
21 // === FUNCTIONS ===
22 /**
23  * \fn int DevFS_AddDevice(tDevFS_Driver *Device)
24  * \brief Registers a device in the Device Filesystem
25  * \param Device        Pointer to a persistant structure that represents the driver
26  * \return Boolean success
27  */
28 extern int      DevFS_AddDevice(tDevFS_Driver *Device);
29
30 /**
31  * \brief Unregisters a device with the Device Filesystem
32  */
33 extern void     DevFS_DelDevice(tDevFS_Driver *Device);
34
35 #endif

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