#include <vfs/vfs.h>#include <ubixos/vitals.h>#include <lib/kmalloc.h>#include <lib/kprintf.h>#include <lib/string.h>Go to the source code of this file.
Functions | |
| int | open (struct thread *td, struct open_args *uap) |
| int | vfs_init () |
| fileSystem * | vfsFindFS (int vfsType) |
| int | vfsRegisterFS (struct fileSystem newFS) |
| register a file system | |
| int vfs_init | ( | ) |
Definition at line 47 of file vfs.c.
References vitalsStruct::fileSystems, kprintf(), and systemVitals.
| struct fileSystem* vfsFindFS | ( | int | vfsType | ) |
Definition at line 58 of file vfs.c.
References vitalsStruct::fileSystems, fileSystem::next, systemVitals, and fileSystem::vfsType.
Referenced by vfs_mount(), and vfsRegisterFS().
| int vfsRegisterFS | ( | struct fileSystem | newFS | ) |
register a file system
This registers a new filesystem into the vfs which is referenced when trying to mount a device
| newFS | pointer to fileSystem structure |
Definition at line 80 of file vfs.c.
References vitalsStruct::fileSystems, kmalloc(), kprintf(), memcpy(), fileSystem::next, NULL, fileSystem::prev, systemVitals, vfsFindFS(), fileSystem::vfsType, and x1.
Referenced by devfs_init(), ubixfs_init(), and ufs_init().
1.4.7