|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
#include "vfs/vnode.h"#include "init/init.h"#include "libk/serial.h"#include "memory/slab.h"#include <str.h>Go to the source code of this file.
Functions | |
| INIT (Vnode) | |
| vnode_ptr_t | __attribute__ ((used, visibility("default"), section(".export"))) |
| This function handles memory allocation for a new dentry using the slab allocator. | |
Variables | |
| static struct slab_cache * | vnode_cache = 0 |
| static uint64_t | vnode_id = 0 |
| vnode_ptr_t __attribute__ | ( | (used, visibility("default"), section(".export")) | ) |
This function handles memory allocation for a new dentry using the slab allocator.
It also links the dentry to its corresponding VNode (if provided).
| name | The name of the file or directory. |
| vnode | Pointer to the associated VNode (inode data). Pass NULL if the VNode is not yet available. |
Definition at line 15 of file vnode.c.
References vnode::id, ioapic_base_addr, IOAPICREDTBL, KERNEL_API, memset(), read_ioapic_register(), reg, vnode_cache, vnode_id, and vxSlabAlloc().
| INIT | ( | Vnode | ) |
Definition at line 10 of file vnode.c.
References LOG_INFO, vnode_cache, and vxCreateSlabCache().
|
static |
Definition at line 7 of file vnode.c.
Referenced by __attribute__(), and INIT().
|
static |
Definition at line 8 of file vnode.c.
Referenced by __attribute__().