UbixOS  2.0
kmalloc.h File Reference
#include <sys/types.h>
Include dependency graph for kmalloc.h:

Go to the source code of this file.

Data Structures

struct  memDescriptor
 

Macros

#define MALLOC_ALIGN(size)   (size + ((((size) % (MALLOC_ALIGN_SIZE)) == 0)? 0 : ((MALLOC_ALIGN_SIZE) - ((size) % (MALLOC_ALIGN_SIZE)))))
 
#define MALLOC_ALIGN_SIZE   32
 
#define sysID   -2
 

Functions

void kfree (void *baseAddr)
 
void * kmalloc (uInt32 len)
 

Macro Definition Documentation

◆ MALLOC_ALIGN

#define MALLOC_ALIGN (   size)    (size + ((((size) % (MALLOC_ALIGN_SIZE)) == 0)? 0 : ((MALLOC_ALIGN_SIZE) - ((size) % (MALLOC_ALIGN_SIZE)))))

Definition at line 40 of file kmalloc.h.

◆ MALLOC_ALIGN_SIZE

#define MALLOC_ALIGN_SIZE   32

Definition at line 39 of file kmalloc.h.

◆ sysID

#define sysID   -2

Definition at line 38 of file kmalloc.h.

Function Documentation

◆ kfree()

◆ kmalloc()