Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
fd.c File Reference
#include "fd.h"
#include "memory/kalloc.h"

Go to the source code of this file.

Functions

struct fdtablealloc_fdtable ()
 
struct file_descriptoralloc_fd ()
 
void free_fdtable (struct fdtable *table)
 

Function Documentation

◆ alloc_fd()

struct file_descriptor * alloc_fd ( )

Definition at line 13 of file fd.c.

References kalloc().

Referenced by create_process().

◆ alloc_fdtable()

struct fdtable * alloc_fdtable ( )

Definition at line 4 of file fd.c.

References INITIAL_MAX_FDS, kalloc(), and table.

Referenced by create_process().

◆ free_fdtable()

void free_fdtable ( struct fdtable * table)

Definition at line 19 of file fd.c.

References kfree2(), and table.