UbixOS  2.0
kmod.c File Reference
#include <sys/types.h>
#include <ubixos/kmod.h>
#include <ubixos/sched.h>
#include <sys/elf.h>
#include <ubixos/kpanic.h>
#include <ubixos/lists.h>
#include <ubixos/spinlock.h>
#include <lib/kprintf.h>
#include <lib/kmalloc.h>
#include <vfs/vfs.h>
#include <vmm/vmm.h>
#include <string.h>
#include <assert.h>
Include dependency graph for kmod.c:

Go to the source code of this file.

Functions

uInt32 kmod_add (const char *kmod_file, const char *name)
 
uInt32 kmod_load (const char *kmod_file)
 

Variables

List_tList = 0x0
 

Function Documentation

◆ kmod_add()

uInt32 kmod_add ( const char *  kmod_file,
const char *  name 
)

Definition at line 45 of file kmod.c.

References CreateItem(), _item_t::data, InitializeList(), InsertItemAtFront(), kmalloc(), kmod_load(), kprintf(), List, and NULL.

Here is the call graph for this function:

◆ kmod_load()

Variable Documentation

◆ List

List_t* List = 0x0

Definition at line 43 of file kmod.c.

Referenced by kmod_add().