|
PatchworkOS
966e257
A non-POSIX operating system.
|
Filesystem interface. More...
Filesystem interface.
Data Structures | |
| struct | filesystem_t |
| Filesystem structure, represents a filesystem type, e.g. fat32, ramfs, sysfs, etc. More... | |
Functions | |
| uint64_t | filesystem_register (filesystem_t *fs) |
| Registers a filesystem. | |
| void | filesystem_unregister (filesystem_t *fs) |
| Unregisters a filesystem. | |
| filesystem_t * | filesystem_get (const char *name) |
| Gets a filesystem by name. | |
| uint64_t filesystem_register | ( | filesystem_t * | fs | ) |
Registers a filesystem.
| fs | The filesystem to register. |
0. On failure, ERR and errno is set to:EINVAL: Invalid parameters.map_insert(). Definition at line 40 of file filesystem.c.
| void filesystem_unregister | ( | filesystem_t * | fs | ) |
Unregisters a filesystem.
| fs | The filesystem to unregister, or NULL for no-op. |
Definition at line 64 of file filesystem.c.
| filesystem_t * filesystem_get | ( | const char * | name | ) |
Gets a filesystem by name.
| name | The name of the filesystem. |
NULL. Definition at line 80 of file filesystem.c.