PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
filesystem.c File Reference
#include <kernel/fs/filesystem.h>
#include <kernel/cpu/syscall.h>
#include <kernel/fs/cwd.h>
#include <kernel/fs/dentry.h>
#include <kernel/fs/file_table.h>
#include <kernel/fs/inode.h>
#include <kernel/fs/key.h>
#include <kernel/fs/mount.h>
#include <kernel/fs/path.h>
#include <kernel/fs/sysfs.h>
#include <kernel/log/log.h>
#include <kernel/log/panic.h>
#include <kernel/mem/vmm.h>
#include <kernel/proc/process.h>
#include <kernel/sched/sched.h>
#include <kernel/sched/clock.h>
#include <kernel/sched/timer.h>
#include <kernel/sched/wait.h>
#include <kernel/sync/mutex.h>
#include <kernel/sync/rwlock.h>
#include <kernel/utils/ref.h>
#include <kernel/cpu/regs.h>
#include <errno.h>
#include <stdint.h>
#include <string.h>
#include <sys/io.h>
#include <sys/list.h>
Include dependency graph for filesystem.c:

Go to the source code of this file.

Functions

static map_key_t filesystem_key (const char *name)
 
uint64_t filesystem_register (filesystem_t *fs)
 Registers a filesystem.
 
void filesystem_unregister (filesystem_t *fs)
 Unregisters a filesystem.
 
filesystem_tfilesystem_get (const char *name)
 Gets a filesystem by name.
 

Variables

static map_t filesystems = MAP_CREATE()
 
static rwlock_t filesystemsLock = RWLOCK_CREATE()
 

Function Documentation

◆ filesystem_key()

static map_key_t filesystem_key ( const char *  name)
static

Definition at line 35 of file filesystem.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ filesystems

map_t filesystems = MAP_CREATE()
static

Definition at line 32 of file filesystem.c.

◆ filesystemsLock

rwlock_t filesystemsLock = RWLOCK_CREATE()
static

Definition at line 33 of file filesystem.c.