|
PatchworkOS
321f6ec
A non-POSIX operating system.
|
#include <kernel/fs/ramfs.h>#include <kernel/fs/dentry.h>#include <kernel/fs/file.h>#include <kernel/fs/filesystem.h>#include <kernel/fs/inode.h>#include <kernel/fs/mount.h>#include <kernel/fs/namespace.h>#include <kernel/fs/path.h>#include <kernel/fs/sysfs.h>#include <kernel/fs/vfs.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/io.h>#include <sys/list.h>#include <sys/math.h>Go to the source code of this file.
Functions | |
| static inode_t * | ramfs_inode_new (superblock_t *superblock, inode_type_t type, void *buffer, uint64_t size) |
| static void | ramfs_dentry_add (dentry_t *dentry) |
| static void | ramfs_dentry_remove (dentry_t *dentry) |
| static uint64_t | ramfs_read (file_t *file, void *buffer, uint64_t count, uint64_t *offset) |
| static uint64_t | ramfs_write (file_t *file, const void *buffer, uint64_t count, uint64_t *offset) |
| static uint64_t | ramfs_create (inode_t *dir, dentry_t *target, mode_t mode) |
| static void | ramfs_truncate (inode_t *inode) |
| static uint64_t | ramfs_link (inode_t *dir, dentry_t *old, dentry_t *target) |
| static uint64_t | ramfs_remove (inode_t *dir, dentry_t *target, mode_t mode) |
| static void | ramfs_inode_cleanup (inode_t *inode) |
| static void | ramfs_superblock_cleanup (superblock_t *superblock) |
| static dentry_t * | ramfs_load_file (superblock_t *superblock, dentry_t *parent, const char *name, const boot_file_t *in) |
| static dentry_t * | ramfs_load_dir (superblock_t *superblock, dentry_t *parent, const char *name, const boot_dir_t *in) |
| static dentry_t * | ramfs_mount (filesystem_t *fs, const char *devName, void *private) |
| void | ramfs_init (void) |
| Registers the ramfs filesystem and mounts it as the root filesystem. | |
Variables | |
| static mount_t * | mount = NULL |
| static file_ops_t | fileOps |
| static inode_ops_t | inodeOps |
| static dentry_ops_t | dentryOps |
| static superblock_ops_t | superOps |
| static filesystem_t | ramfs |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |