|
PatchworkOS
dbbdc99
A non-POSIX operating system.
|
#include <kernel/fs/tmpfs.h>#include <kernel/fs/dentry.h>#include <kernel/fs/devfs.h>#include <kernel/fs/file.h>#include <kernel/fs/filesystem.h>#include <kernel/fs/mount.h>#include <kernel/fs/namespace.h>#include <kernel/fs/path.h>#include <kernel/fs/vfs.h>#include <kernel/fs/vnode.h>#include <kernel/init/boot_info.h>#include <kernel/log/log.h>#include <kernel/log/panic.h>#include <kernel/sched/sched.h>#include <kernel/sync/lock.h>#include <kernel/sync/mutex.h>#include <kernel/utils/ref.h>#include <assert.h>#include <errno.h>#include <stdlib.h>#include <string.h>#include <sys/fs.h>#include <sys/list.h>#include <sys/math.h>Go to the source code of this file.
Functions | |
| static vnode_t * | tmpfs_vnode_new (superblock_t *superblock, vtype_t type, void *buffer, uint64_t size) |
| static void | tmpfs_dentry_add (dentry_t *dentry) |
| static void | tmpfs_dentry_remove (dentry_t *dentry) |
| static size_t | tmpfs_read (file_t *file, void *buffer, size_t count, size_t *offset) |
| static size_t | tmpfs_write (file_t *file, const void *buffer, size_t count, size_t *offset) |
| static uint64_t | tmpfs_create (vnode_t *dir, dentry_t *target, mode_t mode) |
| static void | tmpfs_truncate (vnode_t *vnode) |
| static uint64_t | tmpfs_link (vnode_t *dir, dentry_t *old, dentry_t *target) |
| static uint64_t | tmpfs_readlink (vnode_t *vnode, char *buffer, uint64_t count) |
| static uint64_t | tmpfs_symlink (vnode_t *dir, dentry_t *target, const char *dest) |
| static uint64_t | tmpfs_remove (vnode_t *dir, dentry_t *target) |
| static void | tmpfs_vnode_cleanup (vnode_t *vnode) |
| static void | tmpfs_superblock_cleanup (superblock_t *superblock) |
| static dentry_t * | tmpfs_load_file (superblock_t *superblock, dentry_t *parent, const char *name, const boot_file_t *in) |
| static dentry_t * | tmpfs_load_dir (superblock_t *superblock, dentry_t *parent, const char *name, const boot_dir_t *in) |
| static dentry_t * | tmpfs_mount (filesystem_t *fs, const char *options, void *data) |
| void | tmpfs_init (void) |
| Registers the tmpfs filesystem and mounts an instance of it containing the boot ram disk as root. | |
Variables | |
| static bool | initialized = false |
| static file_ops_t | fileOps |
| static vnode_ops_t | vnodeOps |
| static dentry_ops_t | dentryOps |
| static superblock_ops_t | superOps |
| static filesystem_t | tmpfs |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |