Select Git revision
Forked from
HyukSang Kwon / 1801_OS_assignment4
Source project has a limited visibility.
-
eric967712 authorederic967712 authored
alloc.h 411 B
#ifndef _ALLOC_H_
#define _ALLOC_H_
#include <stdint.h>
#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#define ALLOC_FIRST_FIT 0
#define ALLOC_BEST_FIT 1
#define ALLOC_WORST_FIT 2
typedef struct meta_struct {
struct meta_struct* next;
struct meta_struct* prev;
uint32_t free;
uint32_t size;
} meta;
meta* head;
meta* tail;
int fit;
int num;
char type[10];
#endif