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
5
static
struct
slab_cache
*
mount_cache
;
6
7
typedef
struct
mount_cache_node
{
8
uint8_t
*
obj
[64];
9
}
mount_cache_node_t
;
10
11
INIT
(Mount) {
12
vxCreateSlabCache
(&
mount_cache
,
"mount"
,
sizeof
(
mount_t
), 64, 0);
13
}
14
15
mount_ptr_t
KERNEL_API
vxAllocMountTable
() {
16
return
(
mount_ptr_t
)
vxSlabAlloc
(
mount_cache
);
17
}
init.h
INIT
#define INIT(fn)
Definition
init.h:26
mount_cache
static struct slab_cache * mount_cache
Definition
mount.c:5
mount_cache_node_t
struct mount_cache_node mount_cache_node_t
mount.h
vxAllocMountTable
mount_ptr_t vxAllocMountTable()
mount_t
struct mount mount_t
mount_ptr_t
mount_t * mount_ptr_t
Definition
mount.h:18
vxSlabAlloc
void * vxSlabAlloc(struct slab_cache *cache)
Definition
slab.c:93
vxCreateSlabCache
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
slab.h
mount_cache_node
Definition
mount.c:7
mount_cache_node::obj
uint8_t * obj[64]
Definition
mount.c:8
slab_cache
Definition
slab.h:18
KERNEL_API
#define KERNEL_API
Definition
type.h:93
uint8_t
unsigned char uint8_t
Definition
type.h:7
kernel
vfs
mount.c
Generated on Sat May 30 2026 11:09:57 for Voxia OS by
1.13.2