XenevaOS
Loading...
Searching...
No Matches
devfs.h
Go to the documentation of this file.
1
30#ifndef __DEVFS_H__
31#define __DEVFS_H__
32
33#include <stdint.h>
34#include <aurora.h>
35#include <Fs\vfs.h>
36
37/* Device file system, where all driver registers
38 * their own device node
39 */
40
41
42/*
43* AuDeviceFsInitialize -- initialise the device
44* file system
45*/
46extern void AuDeviceFsInitialize();
47
48/*
49* AuDevFSCreateFile -- create a file/directory
50* @param fs -- pointer to device file system
51* @param path -- path of the file
52* @param mode -- mode of the file either Directory
53* or General device file
54*/
55extern int AuDevFSCreateFile(AuVFSNode* fs, char* path, uint8_t mode);
56
57/*
58* AuDevFSAddFile -- adds a file/directory
59* @param fs -- pointer to device file system
60* @param path -- path of the file
61* @param file -- file to add to dev fs
62*/
64/*
65* AuDevFSOpen -- open a device file and return to the
66* caller
67* @param fs -- file system node
68* @param path -- path of the dev file
69*/
70extern AuVFSNode* AuDevFSOpen(AuVFSNode* fs, char* path);
71
72/* For debug purpose */
73extern void AuDevFSList(AuVFSNode* fs);
74
75/*
76* AuDevFSRemoveFile -- remove a file from device
77* file system
78* @param fs -- pointer to the file system
79* @param path -- path of the file
80*/
82#endif
#define AU_EXTERN
Definition aurora.h:50
#define AU_EXPORT
Definition aurora.h:38
char * path
Definition main.cpp:62
unsigned char uint8_t
Definition acefiex.h:161
int AuDevFSCreateFile(AuVFSNode *fs, char *path, uint8_t mode)
Definition devfs.cpp:67
AU_EXTERN AU_EXPORT int AuDevFSAddFile(AuVFSNode *fs, char *path, AuVFSNode *file)
Definition devfs.cpp:126
void AuDeviceFsInitialize()
Definition devfs.cpp:44
AuVFSNode * AuDevFSOpen(AuVFSNode *fs, char *path)
Definition devfs.cpp:207
void AuDevFSList(AuVFSNode *fs)
Definition devfs.cpp:181
AU_EXTERN AU_EXPORT int AuDevFSRemoveFile(AuVFSNode *fs, char *path)
Definition devfs.cpp:253
Definition vfs.h:89