Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
mount.c
Go to the documentation of this file.
1#include "vfs/mount.h"
2#include "init/init.h"
3#include "memory/slab.h"
4
5static struct slab_cache* mount_cache;
6
10
11INIT(Mount) {
12 vxCreateSlabCache(&mount_cache, "mount", sizeof(mount_t), 64, 0);
13}
14
#define INIT(fn)
Definition init.h:26
static struct slab_cache * mount_cache
Definition mount.c:5
struct mount_cache_node mount_cache_node_t
mount_ptr_t vxAllocMountTable()
struct mount mount_t
mount_t * mount_ptr_t
Definition mount.h:18
void * vxSlabAlloc(struct slab_cache *cache)
Definition slab.c:93
void vxCreateSlabCache(struct slab_cache **cache, const char *name, const size_t obj_size, size_t alignment, const uintptr_t virt_addr)
Definition slab.c:44
uint8_t * obj[64]
Definition mount.c:8
#define KERNEL_API
Definition type.h:93
unsigned char uint8_t
Definition type.h:7