|
My Kernel v0.1.0
|

Data Structures | |
| struct | vfs_operations |
| Vector Table for operations on a filesystems. More... | |
| struct | vfs |
| represents a single virtual filesystem More... | |
Functions | |
| error_t | vfs_mount (const char *path, const char *fs_type, struct block_device *) |
| Mount a filesystem of the given type at a given path. More... | |
| error_t | vfs_mount_root (const char *fs_type, struct block_device *) |
| Mount a filesystem at the root of the VFS. More... | |
| error_t | vfs_unmount (const char *path) |
| Unmount the filesystem present at the given path. More... | |
| vnode_t * | vfs_find_by_path (const char *path) |
| Retreive the vnode corresponding to a path. More... | |
| vnode_t * | vfs_create (const char *path, vnode_type type) |
| Create a new file at the given path. More... | |
| error_t | vfs_remove (const char *path) |
| Remove the file located at the given path. More... | |
| struct file * | vfs_open (const char *path, int oflags) |
| Open the file located at the given path. More... | |
| vnode_t * vfs_create | ( | const char * | path, |
| vnode_type | type | ||
| ) |
| path | The path of the new child |
| type | The type of the new file |
| vnode_t * vfs_find_by_path | ( | const char * | path | ) |
| error_t vfs_mount | ( | const char * | path, |
| const char * | fs_type, | ||
| struct block_device * | blkdev | ||
| ) |
| path | Where the fs should be mounted (must be an existing directory) |
| fs_type | The name of the filesystem to mount |
| block_device | The block device the filesystem resides on |
| error_t vfs_mount_root | ( | const char * | fs_type, |
| struct block_device * | blkdev | ||
| ) |
| fs_type | The type of the filesystem |
| block_device | The block device the filesystem resides on |
| struct file * vfs_open | ( | const char * | path, |
| int | oflags | ||
| ) |
| path | Absolute path to the file |
| oflags | Same flags as those passed to the open() syscal (O_*) |
| error_t vfs_remove | ( | const char * | path | ) |
| error_t vfs_unmount | ( | const char * | path | ) |