|
PatchworkOS
dbbdc99
A non-POSIX operating system.
|
#include <kernel/fs/devfs.h>#include <kernel/fs/dentry.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/superblock.h>#include <kernel/fs/vfs.h>#include <kernel/fs/vnode.h>#include <kernel/log/log.h>#include <kernel/log/panic.h>#include <kernel/sched/sched.h>#include <kernel/sync/lock.h>#include <assert.h>#include <errno.h>#include <stdatomic.h>#include <stdlib.h>#include <string.h>#include <sys/fs.h>#include <sys/list.h>Go to the source code of this file.
Functions | |
| static dentry_t * | devfs_mount (filesystem_t *fs, const char *options, void *data) |
| void | devfs_init (void) |
| Initializes the devfs. | |
| dentry_t * | devfs_dir_new (dentry_t *parent, const char *name, const vnode_ops_t *vnodeOps, void *data) |
| Create a new directory inside a mounted devfs instance. | |
| dentry_t * | devfs_file_new (dentry_t *parent, const char *name, const vnode_ops_t *vnodeOps, const file_ops_t *fileOps, void *data) |
| Create a new file inside a mounted devfs instance. | |
| dentry_t * | devfs_symlink_new (dentry_t *parent, const char *name, const vnode_ops_t *vnodeOps, void *data) |
| Create a new symbolic link inside a mounted devfs instance. | |
| uint64_t | devfs_files_new (list_t *out, dentry_t *parent, const devfs_file_desc_t *descs) |
| Create multiple files in a devfs directory. | |
| void | devfs_files_free (list_t *files) |
Free all files in a list created by devfs_files_new(). | |
Variables | |
| static dentry_t * | root = NULL |
| static dentry_ops_t | dentryOps |
| static filesystem_t | devfs |
|
static |
|
static |
|
static |