Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
init.c File Reference
#include "init/init.h"
#include "hal/apic/apic.h"
#include "hal/cpu/interrupt.h"
#include "init/loader.h"
#include "libk/debug/debug.h"
#include "libk/serial.h"
#include "memory/phys_base_allocator.h"
#include "notify.h"
#include "procc/process.h"
#include "tty/tty.h"
#include <console/console.h>
#include <hal/acpi/hpet.h>
#include <memory/kalloc.h>
#include <net/netutils.h>
#include <str.h>

Go to the source code of this file.

Functions

 __attribute__ ((noreturn))
 
 __attribute__ ((unused, noreturn))
 
 __attribute__ ((used, visibility("default"), section(".export")))
 This function handles memory allocation for a new dentry using the slab allocator.
 

Function Documentation

◆ __attribute__() [1/3]

__attribute__ ( (noreturn) )

Definition at line 18 of file init.c.

References KERNEL_API, ptr, and size.

◆ __attribute__() [2/3]

◆ __attribute__() [3/3]

__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).

Note
This function performs lazy initialization of the dentry slab cache if it does not exist yet.
Parameters
nameThe name of the file or directory.
vnodePointer to the associated VNode (inode data). Pass NULL if the VNode is not yet available.
Returns
dentry_ptr A pointer to the newly allocated and initialized dentry.

Definition at line 89 of file init.c.

References KERNEL_API, kfree(), and ptr.