Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
simple_alloc.c File Reference
#include <stddef.h>
#include "types.h"
#include "page.h"
#include "string.h"
#include "ops.h"

Go to the source code of this file.

Data Structures

struct  alloc_info
 

Macros

#define ENTRY_BEEN_USED   0x01
 
#define ENTRY_IN_USE   0x02
 

Functions

voidsimple_alloc_init (char *base, unsigned long heap_size, unsigned long granularity, unsigned long max_allocs)
 

Macro Definition Documentation

#define ENTRY_BEEN_USED   0x01

Definition at line 18 of file simple_alloc.c.

#define ENTRY_IN_USE   0x02

Definition at line 19 of file simple_alloc.c.

Function Documentation

void* simple_alloc_init ( char base,
unsigned long  heap_size,
unsigned long  granularity,
unsigned long  max_allocs 
)

Definition at line 126 of file simple_alloc.c.