|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
#include "./library.h"#include "vfs/dentry.h"#include "vfs/vnode.h"#include <hal/cpu/paging.h>#include <libk/executable/elf.h>#include <libk/serial.h>#include <str.h>#include <memory/memory_utils.h>#include <memory/phys_base_allocator.h>#include <vfs/vfs.h>Go to the source code of this file.
Functions | |
| void | library_register (const char *path, enum LibraryType type) |
| struct Library * | library_load (const char *name) |
Variables | |
| static struct Library * | libraries = 0 |
| struct Library * library_load | ( | const char * | name | ) |
Definition at line 49 of file library.c.
References libraries, LOG_INFO, Library::name, name, Library::next, strlen(), and strncmp().
| void library_register | ( | const char * | path, |
| enum LibraryType | type ) |
Definition at line 14 of file library.c.
References kstring::c_str, Library::entry, kalloc(), libraries, LOG_ERROR, LOG_INFO, memset(), dentry::name, Library::name, Library::next, vnode::ops, path, resolve_dentry(), vnode::size, Library::type, type, and dentry::vnode.
|
static |
Definition at line 12 of file library.c.
Referenced by library_load(), and library_register().